commit | ed4743a2f2bb8d88f7f1aa9307794be9a44f1e0f | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Nov 24 02:13:26 2017 +0100 |
committer | GitHub <noreply@github.com> | Fri Nov 24 02:13:26 2017 +0100 |
tree | 360e8ce9ba66cdae3d0c8194ce4dceb508cf1ca5 | |
parent | 35d99830f1878867e3964577741d9a2d5a7fc8f7 [diff] |
bpo-31626: Fix _PyObject_DebugReallocApi() (#4310) _PyObject_DebugReallocApi() now calls Py_FatalError() if realloc() fails to shrink a memory block. Call Py_FatalError() because _PyObject_DebugReallocApi() erased freed bytes *before* realloc(), expecting that realloc() *cannot* fail to shrink a memory block.