Fix obscure obstack bug

Neil Booth neil@daikokuya.demon.co.uk
Sat Dec 15 05:43:00 GMT 2001


Ulrich Drepper wrote:-

> Neil Booth <neil@daikokuya.demon.co.uk> writes:
> 
> > Huh?  I was asked to allocate "size" bytes and I allocated it.
> 
> The request is made based on assumptions about the chunk size.  If you
> change it you make the assumptions invalid.

Then you should document this restriction, and also that changing the
chunk size either up or down in the allocation routine is guaranteed
to segfault upon further allocations with the current broken
implementation of obstacks.

Neil.



More information about the Libc-alpha mailing list