]> granicus.if.org Git - python/commit
bpo-31626: Mark ends of the reallocated block in debug build. (#4210)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 7 Nov 2017 10:46:42 +0000 (12:46 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2017 10:46:42 +0000 (12:46 +0200)
commit3cc4c53a64bdcf21431ad306eca0e568f88735a2
tree27e380b29f35d9984217058d2c3dd6be46622c17
parentcb04f7518292108d68e5ba4c685ca2bf2da18eab
bpo-31626: Mark ends of the reallocated block in debug build. (#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.
Objects/obmalloc.c