Author serhiy.storchaka
Recipients davin, larry, serhiy.storchaka, skrah, vstinner, xdegaye
Date 2017-10-31.19:23:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509477803.52.0.213398074469.issue31626@psf.upfronthosting.co.za>
In-reply-to
Content
I have removed the incorrect code in master and 3.6, this unblocks testing debug build on OpenBSD. I don't think it is worth to backport this change to 3.5 and 3.4, since the bug affects only debug build.

Here is a patch which perhaps is an alternative to PR 4119, but without disturbing the heap allocator. It erases just few bytes at the begin and at the end of the allocated block (including the header and the trailer), and saves erased bytes in small local buffer. It does this even if the block is not reallocated in-place. Hence calling free() on reallocated block will be detected. Reading from the reallocated block will get erased bytes at the start and the end, this is likely will cause to loud failure too. I have tested in on OpenBSD.

But I'm not sure that it is worth to apply this patch. Left it on to you Victor.
History
Date User Action Args
2017-10-31 19:23:23serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, larry, skrah, xdegaye, davin
2017-10-31 19:23:23serhiy.storchakasetmessageid: <1509477803.52.0.213398074469.issue31626@psf.upfronthosting.co.za>
2017-10-31 19:23:23serhiy.storchakalinkissue31626 messages
2017-10-31 19:23:23serhiy.storchakacreate