This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]