Commit graph

22 commits

Author SHA1 Message Date
Russ Cox
002d2f2610 libregexp: more placating of gcc (John Gosset) 2008-05-10 13:36:05 -04:00
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
1d550471f1 another 2007-06-09 04:59:40 +00:00
rsc
2f9d900118 day one bug in sam regexp code 2007-06-09 04:58:00 +00:00
rsc
29412e1c31 fix pointer comparison (Ramon de Vera) 2007-05-21 19:21:56 +00:00
rsc
da7f7882a2 Match leading ^ in regexp with embedded newlines (Roger Peppe) 2007-05-18 16:43:43 +00:00
rsc
4515de8f50 silence warning (andrey) 2006-04-20 20:18:13 +00:00
rsc
bb0266fe61 no wide character constants; sigh 2005-05-07 22:42:06 +00:00
rsc
5ba56e9139 silence warning 2005-01-14 17:55:23 +00:00
rsc
9cb6f43045 bad name 2004-12-27 00:12:22 +00:00
rsc
186a31de6b add for porting 2004-12-27 00:12:12 +00:00
rsc
127d5444fb add portdate 2004-12-26 23:48:25 +00:00
rsc
7e42d21012 odds and ends 2004-04-21 23:43:46 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
28fe2052d0 don't need these. 2004-03-05 05:14:18 +00:00
rsc
62390091b7 Update libregexp with recent bug fixes from Plan 9. 2004-03-05 05:13:56 +00:00
rsc
99947423b1 make -> mk 2003-11-23 18:22:36 +00:00
rsc
90026180d1 Use new directory structure. 2003-10-11 03:58:46 +00:00
rsc
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
b2cfc4e2e7 Initial revision 2003-09-30 17:47:41 +00:00