This is the mail archive of the
mailing list for the GCC project.
Re: Fix obscure obstack bug
Ulrich Drepper wrote:-
> Neil Booth <email@example.com> 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.