[Mono-bugs] [Bug 72989][Blo] Changed - Stack overflw in RegularExpression parsing
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 3 Mar 2005 16:30:00 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72989
--- shadow/72989 2005-03-02 14:21:04.000000000 -0500
+++ shadow/72989.tmp.30654 2005-03-03 16:30:00.000000000 -0500
@@ -206,6 +206,18 @@
current state = States.Pop(); // try previous match of the repeat
expression
}
The main issue is that I don't see well how to match the Repeat
expression exactly once. I think I can define well what is the state
to hold within the stack and how to manage the other details.
+
+------- Additional Comments From gonzalo@ximian.com 2005-03-03 16:30 -------
+The current flow is like:
+REPEAT
+UNTIL expression
+...
+JUMP until
+
+Each REPEAT, UNTIL and JUMP increase the recursion level.
+I have code here that make JUMP restore the stack level before going
+to the UNTIL but sadly it broke one case for lazy matching. I'll give
+it another try soon.