r58892 - python/trunk/Objects/stringobject.c
6 Nov
2007
6 Nov
'07
11:32 p.m.
Author: guido.van.rossum Date: Wed Nov 7 00:32:56 2007 New Revision: 58892 Modified: python/trunk/Objects/stringobject.c Log: Add missing "return NULL" in overflow check in PyObject_Repr(). Modified: python/trunk/Objects/stringobject.c ============================================================================== --- python/trunk/Objects/stringobject.c (original) +++ python/trunk/Objects/stringobject.c Wed Nov 7 00:32:56 2007 @@ -869,6 +869,7 @@ if (newsize > PY_SSIZE_T_MAX || newsize / 4 != Py_Size(op)) { PyErr_SetString(PyExc_OverflowError, "string is too large to make repr"); + return NULL; } v = PyString_FromStringAndSize((char *)NULL, newsize); if (v == NULL) {
6208
Age (days ago)
6208
Last active (days ago)
0 comments
1 participants
participants (1)
-
guido.van.rossum