bpo-31626: Mark ends of the reallocated block in debug build. (#4210) · pythoncapi/cpython@3cc4c53 · GitHub
Skip to content

Commit 3cc4c53

Browse files
bpo-31626: Mark ends of the reallocated block in debug build. (python#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.
1 parent cb04f75 commit 3cc4c53

1 file changed

Lines changed: 57 additions & 19 deletions

File tree

Objects/obmalloc.c

Lines changed: 57 additions & 19 deletions

0 commit comments

Comments
 (0)