Bugs item #1959811, was opened at 2008-05-07 23:22
Message generated for change (Comment added) made by helly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1959811&group_id=96864

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Dennis Schridde (lindevel)
Assigned to: Marcus Börger (helly)
Summary: Segfault for debug scanners

Initial Comment:
In debug mode re2c generates code like this:
        YYDEBUG(0, *YYCURSOR);
        if ((YYLIMIT - YYCURSOR) < 11) YYFILL(11);

However before the scanner was filled, "cursor" will be NULL. (At least for the 
examples.)

I assume YYCURSOR should be filled before trying to access it. I.e. YYDEBUG 
after YYFILL.

----------------------------------------------------------------------

>Comment By: Marcus Börger (helly)
Date: 2008-05-25 17:59

Message:
Logged In: YES 
user_id=271023
Originator: NO

Which example are you referring to?

----------------------------------------------------------------------

Comment By: Dennis Schridde (lindevel)
Date: 2008-05-25 17:31

Message:
Logged In: YES 
user_id=778819
Originator: YES

Then this is a problem in your examples, which do not seem to handle this
case.

----------------------------------------------------------------------

Comment By: Marcus Börger (helly)
Date: 2008-05-25 15:50

Message:
Logged In: YES 
user_id=271023
Originator: NO

The user code has to initialize YYCURSOR. In your example fill() would not
get called as YYLIMIT - NULL probably is greater 11.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1959811&group_id=96864

-------------------------------------------------------------------------
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
Re2c-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to