Re: better free checking

2014-05-16 Thread Ted Unangst
On Fri, May 16, 2014 at 20:01, Otto Moerbeek wrote: > On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: > >> As I learned the hard way not long ago, free() doesn't detect all >> errors because of the delay mechanism. We can make two improvements. >> >> 1. Perform the sanity checking fr

Re: better free checking

2014-05-16 Thread Otto Moerbeek
On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: > As I learned the hard way not long ago, free() doesn't detect all > errors because of the delay mechanism. We can make two improvements. > > 1. Perform the sanity checking from free_bytes before we insert > something into the delay ar

Re: better free checking

2014-05-15 Thread Otto Moerbeek
On Wed, May 14, 2014 at 03:28:02PM -0400, Ted Unangst wrote: > As I learned the hard way not long ago, free() doesn't detect all > errors because of the delay mechanism. We can make two improvements. > > 1. Perform the sanity checking from free_bytes before we insert > something into the delay ar

better free checking

2014-05-14 Thread Ted Unangst
As I learned the hard way not long ago, free() doesn't detect all errors because of the delay mechanism. We can make two improvements. 1. Perform the sanity checking from free_bytes before we insert something into the delay array. This detects many kinds of badness much sooner. 2. Check that the