mem stomp in cpplib.c?

Zack Weinberg zack@wolery.cumb.org
Wed Jul 5 11:13:00 GMT 2000


On Wed, Jul 05, 2000 at 11:49:28AM -0500, Robert Lipe wrote:
> > > 'sym' holds 'len' bytes of storage.  We then copy 'len' bytes of storage
> > > starting at 'sym+1'.  So we have a tiny little stack overwrite here.
> > 
> > Yes.  Also reported by Andreas Jaeger, over on gcc-bugs.  
> 
> Do bootstrap problems go on gcc or gcc-bugs?  Since they're
> development-releated, I'd been thinking they went on gcc.

I usually post them to gcc-bugs.

> > This is my candidate patch - I can't reproduce the problem on my
> > system, so can you test it, please?
> 
> This cures my testcase and gets me through stage1.  The bootstrap
> proceeds as we speak, so I give this a thumbs-up.

I've committed it now.

> I'm guessing you can't reproduce it becuase you have a bootstrap
> compiler that supports an intrinsic alloca so walking one byte past the
> end of allocated storage isn't a traumatic thing.

That would do it, yes.

zw


More information about the Gcc mailing list