Re: [patch] Don't allow the pool allocator to be configured to allocate zero-sized objects

2018-10-30 Thread Richard Biener
On Tue, Oct 30, 2018 at 11:55 AM Richard Earnshaw (lists) wrote: > > PR bootstrap/87747 would have been significantly easier to track down if > the pool allocator had faulted an attempt to configure it to allocate > zero-sized objects. Instead, this slipped through and we later hit > memory corru

[patch] Don't allow the pool allocator to be configured to allocate zero-sized objects

2018-10-30 Thread Richard Earnshaw (lists)
PR bootstrap/87747 would have been significantly easier to track down if the pool allocator had faulted an attempt to configure it to allocate zero-sized objects. Instead, this slipped through and we later hit memory corruption when the assumed size turned out to be different to the configured siz