Fix T37472: crash when packing UV islands.
This commit is contained in:
@@ -1563,7 +1563,7 @@ static PyObject *M_Geometry_convex_hull_2d(PyObject *UNUSED(self), PyObject *poi
|
||||
int *index_map;
|
||||
Py_ssize_t len_ret, i;
|
||||
|
||||
index_map = MEM_mallocN(sizeof(*index_map) * len, __func__);
|
||||
index_map = MEM_mallocN(sizeof(*index_map) * len * 2, __func__);
|
||||
|
||||
/* Non Python function */
|
||||
len_ret = BLI_convexhull_2d((const float (*)[2])points, len, index_map);
|
||||
|
Reference in New Issue
Block a user