Skip to content

Commit fc1d632

Browse files
committed
Merge 3.3
2 parents 609a219 + d755243 commit fc1d632

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9656,7 +9656,7 @@ case_operation(PyObject *self,
96569656
PyErr_SetString(PyExc_OverflowError, "string is too long");
96579657
return NULL;
96589658
}
9659-
tmp = PyMem_MALLOC(sizeof(Py_UCS4) * 3 * length);
9659+
tmp = PyMem_MALLOC(sizeof(Py_UCS4) * 3 * (size_t)length);
96609660
if (tmp == NULL)
96619661
return PyErr_NoMemory();
96629662
newlength = perform(kind, data, length, tmp, &maxchar);

0 commit comments

Comments
 (0)