Merge 3.4

This commit is contained in:
Benjamin Peterson 2014-10-15 11:51:17 -04:00
commit 315aa40403
1 changed files with 1 additions and 1 deletions

View File

@ -9680,7 +9680,7 @@ case_operation(PyObject *self,
PyErr_SetString(PyExc_OverflowError, "string is too long");
return NULL;
}
tmp = PyMem_MALLOC(sizeof(Py_UCS4) * 3 * length);
tmp = PyMem_MALLOC(sizeof(Py_UCS4) * 3 * (size_t)length);
if (tmp == NULL)
return PyErr_NoMemory();
newlength = perform(kind, data, length, tmp, &maxchar);