This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix obscure obstack bug


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]