New libc malloc patch
Andrey Chernov
ache at FreeBSD.ORG
Wed Nov 30 14:40:12 GMT 2005
On Wed, Nov 30, 2005 at 06:32:54AM -0800, Jason Evans wrote:
> In a previous version of the patch, I included compile-time support
> for redzones around allocations. Kris Kennaway did a full ports tree
> build with redzones enabled, and several ports caused redzone
> corruption, but in every case it was due to writing one byte past the
> end of an allocation. None of these were serious, since word
> alignment required that the "corrupted" byte be unused. I suspect
> that we would catch very few serious errors, even if redzones were
> enabled by default.
You can make red zones word-aligned in addition to byte-aligned variant,
both as malloc options, of course.
--
http://ache.pp.ru/
More information about the freebsd-current
mailing list