Commit graph

7 commits

Author SHA1 Message Date
Russ Cox
27589754e4 libregexp: fix match choice bug
This bug fix allows some pathological regular
expressions to cause the regexp library to
report a stack overflow (really a stack filling; safe)
but it also fixes the behavior of some common regexps.
It is too hard to satisfy both.
2008-01-10 17:06:51 -05:00
Russ Cox
6d08a0f548 libregexp: revert regexp fix 2007-12-07 17:33:41 -05:00
Russ Cox
a7511dd43d libregexp: fix ambiguous match selection
echo SYSSYSR1 | sed 's/SYS.+/sysr1/'

was producing SYSsysr1 instead of sysr1.
Bug was introduced during overflow cleanup earlier this year.

Also bring regexec.c and rregexec.c into sync again.
Also allocate large enough lists in the regexec2/rregexec2 case.
2007-12-07 15:32:45 -05:00
rsc
2f9d900118 day one bug in sam regexp code 2007-06-09 04:58:00 +00:00
rsc
da7f7882a2 Match leading ^ in regexp with embedded newlines (Roger Peppe) 2007-05-18 16:43:43 +00:00
rsc
62390091b7 Update libregexp with recent bug fixes from Plan 9. 2004-03-05 05:13:56 +00:00
rsc
b2cfc4e2e7 Initial revision 2003-09-30 17:47:41 +00:00