]> granicus.if.org Git - python/commit
Backport code from r65182:
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jul 2008 05:06:20 +0000 (05:06 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 28 Jul 2008 05:06:20 +0000 (05:06 +0000)
commit83ac0144fa3041556aa4f3952ebd979e0189a19c
tree6ea0926c622f76b3eb8542cad72ffde6aaabc551
parentc8e4bed1c5a11b0447feb38d0870af056a71ad2c
Backport code from r65182:

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