◐ Shell
clean mode source ↗

bpo-31626: Mark ends of the reallocated block in debug build. by serhiy-storchaka · Pull Request #4210 · python/cpython

Few bytes at the begin and at the end of the reallocated blocks, as well
as the header and the trailer, now are erased before calling realloc()
in debug build.  This will help to detect using or double freeing the
reallocated block.

vstinner

vstinner

@serhiy-storchaka

vstinner

vstinner

@serhiy-storchaka

vstinner

embray pushed a commit to embray/cpython that referenced this pull request

Nov 9, 2017
…#4210)

Few bytes at the begin and at the end of the reallocated blocks, as well
as the header and the trailer, now are erased before calling realloc()
in debug build.  This will help to detect using or double freeing the
reallocated block.