diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 22:44:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 22:44:43 (GMT) |
commit | c4266360fc70745d49b09f2c29cda91c1a007525 (patch) | |
tree | ff5dd727f232097d2b7c87dcf9095388f3b1c49b /Objects/stringlib | |
parent | 9e6b4d715c46c0fa518fd76440b59516a9f6f7ea (diff) | |
download | cpython-c4266360fc70745d49b09f2c29cda91c1a007525.zip cpython-c4266360fc70745d49b09f2c29cda91c1a007525.tar.gz cpython-c4266360fc70745d49b09f2c29cda91c1a007525.tar.bz2 |
Issue #18408: Fix _PyMem_DebugRealloc()
Don't mark old extra memory dead before calling realloc(). realloc() can fail
and realloc() must not touch the original buffer on failure.
So mark old extra memory dead only on success if the new buffer did not move
(has the same address).
Diffstat (limited to 'Objects/stringlib')
0 files changed, 0 insertions, 0 deletions