Date: Wed, 30 Nov 2005 17:39:59 +0300 From: Andrey Chernov <ache@FreeBSD.ORG> To: Jason Evans <jasone@canonware.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: New libc malloc patch Message-ID: <20051130143959.GA43118@nagual.pp.ru> In-Reply-To: <820D3D1C-353C-40EC-9D75-75446517A422@canonware.com> References: <6861.1133349506@critter.freebsd.dk> <200511302252.05741.doconnor@gsoft.com.au> <20051130123019.GA1068@galgenberg.net> <820D3D1C-353C-40EC-9D75-75446517A422@canonware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051130143959.GA43118>