commit | e7d8be80ba634fa15ece6f503c33592e0d333361 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Thu Jul 31 17:17:14 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Thu Jul 31 17:17:14 2008 +0000 |
tree | 4264163ebdcea24504f3842330602d98301cf659 | |
parent | e70f8e1205b5fc60a30469db69bbee4d5d532d86 [diff] [blame] |
Security patches from Apple: prevent int overflow when allocating memory
diff --git a/Objects/longobject.c b/Objects/longobject.c index 2c228bb..228376a 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c
@@ -70,6 +70,8 @@ return NULL; } /* coverity[ampersand_in_size] */ + /* XXX(nnorwitz): This can overflow -- + PyObject_NEW_VAR / _PyObject_VAR_SIZE need to detect overflow */ return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size); }