Re: New libc malloc patch

From: Andrey Chernov <ache_at_FreeBSD.ORG>
Date: Wed, 30 Nov 2005 17:39:59 +0300
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/
Received on Wed Nov 30 2005 - 13:40:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC