[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

Stefan Krah report at bugs.python.org
Sat Oct 28 10:26:35 EDT 2017


Stefan Krah <stefan at bytereef.org> added the comment:

> realloc() must not touch the original buffer on failure

I don't understand this: If realloc() fails, the original buffer
is perfectly valid.

----------
nosy: +skrah

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31626>
_______________________________________


More information about the Python-bugs-list mailing list