Commit [520bee] Maximize Restore History

Repo status: analyzing...

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.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@65262 6015fed2-1504-0410-9fe1-9d1591cc4771

neal.norwitz neal.norwitz 2008-07-28

changed Include/pymem.h
changed Misc/NEWS
changed Modules/almodule.c
changed Modules/arraymodule.c
changed Modules/selectmodule.c
changed Objects/obmalloc.c
Include/pymem.h Diff Switch to side-by-side view
Loading...
Misc/NEWS Diff Switch to side-by-side view
Loading...
Modules/almodule.c Diff Switch to side-by-side view
Loading...
Modules/arraymodule.c Diff Switch to side-by-side view
Loading...
Modules/selectmodule.c Diff Switch to side-by-side view
Loading...
Objects/obmalloc.c Diff Switch to side-by-side view
Loading...