mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge 3.3
This commit is contained in:
commit
60d7a73194
1 changed files with 1 additions and 1 deletions
|
@ -9656,7 +9656,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue