Fix T37472: crash when packing UV islands.

This commit is contained in:
2013-11-19 11:18:00 +11:00
parent 965c1357c4
commit 4da651c8f0
2 changed files with 4 additions and 2 deletions

View File

@@ -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);