Re: malloc: better write-after-free detection for chunks

2023-05-14 Thread Otto Moerbeek
On Sun, May 14, 2023 at 10:42:34AM +0200, Otto Moerbeek wrote: > Hi, > > On free, chunks (the pieces of a pages used for smaller allocations) > are junked and then validated after they leave the delayed free list. > So after free, a chunk always contains junk bytes. This means that if > we start

malloc: better write-after-free detection for chunks

2023-05-14 Thread Otto Moerbeek
Hi, On free, chunks (the pieces of a pages used for smaller allocations) are junked and then validated after they leave the delayed free list. So after free, a chunk always contains junk bytes. This means that if we start with the right contents for a new page of chunks, we can *validate* instead