Hello Jan-Henrik, the fix needs to be applied to scanner.re of course as scanner.cc will get overwritten. The reason I did not catch this is as the value is always greater than or equal to BSize. Thanks for the heads up anyways. I'll commit just now.
marcus Friday, March 7, 2008, 9:54:49 PM, you wrote: > Just checking up on fill implementation and come over this in > bootstrap/scanner.cc which I believe should be changed with this patch > to avoid risking setting the top pointer into wonderland. > Index: bootstrap/scanner.cc > =================================================================== > --- bootstrap/scanner.cc (revision 828) > +++ bootstrap/scanner.cc (working copy) > @@ -67,7 +67,7 @@ > cursor = &buf[cursor - bot]; > pos = &buf[pos - bot]; > lim = &buf[lim - bot]; > - top = &lim[BSIZE]; > + top = lim + need; > delete [] bot; > bot = buf; > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Re2c-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/re2c-general -- Best regards, Marcus mailto:[EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Re2c-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/re2c-general
