diff options
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index d638c64..b15a3f0 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -499,6 +499,8 @@ PyLong_FromString(str, pend, base) Py_DECREF(z); z = temp; } + if (z == NULL) + return NULL; if (str == start) { PyErr_SetString(PyExc_ValueError, "no digits in long int constant"); |