]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport r65182. This change modified from using the unsigned max value
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jul 2008 05:22:45 +0000 (05:22 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jul 2008 05:22:45 +0000 (05:22 +0000)
commit46b3a79459934a09eaf00caf7e36b20717afc09f
tree975e8ebcba52cbf106c072b40350f1a15941ce3f
parent5cdbf772a8a50e519a30cf3daefcb735b0fe8c98
Backport r65182.  This change modified from using the unsigned max value
to the signed max value similar to 2.5 and trunk.

Issue #2620: Overflow checking when allocating or reallocating memory
was not always being done properly in some python types and extension
modules.  PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.
Include/pymem.h
Misc/NEWS
Modules/almodule.c
Modules/arraymodule.c
Modules/selectmodule.c
Objects/obmalloc.c