diff options
author | schwarze <> | 2016-05-26 14:23:55 +0000 |
---|---|---|
committer | schwarze <> | 2016-05-26 14:23:55 +0000 |
commit | 5a101547970b215a54782c732b34268436dad5fa (patch) | |
tree | 8daa0be741eb5ee9abefa15a7d20930129571da2 | |
parent | c8a67d26ec65a86d7d7d81969a0d5132215f2e6e (diff) | |
download | openbsd-5a101547970b215a54782c732b34268436dad5fa.tar.gz openbsd-5a101547970b215a54782c732b34268436dad5fa.tar.bz2 openbsd-5a101547970b215a54782c732b34268436dad5fa.zip |
tests for the two segfaults in backref() that were just fixed
-rw-r--r-- | src/regress/lib/libc/regex/tests | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libc/regex/tests b/src/regress/lib/libc/regex/tests index ab3d10aefe..ee019f0a04 100644 --- a/src/regress/lib/libc/regex/tests +++ b/src/regress/lib/libc/regex/tests | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: tests,v 1.7 2016/05/26 13:38:22 schwarze Exp $ | 1 | # $OpenBSD: tests,v 1.8 2016/05/26 14:23:55 schwarze Exp $ |
2 | # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ | 2 | # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ |
3 | 3 | ||
4 | # regular expression test set | 4 | # regular expression test set |
@@ -200,6 +200,9 @@ foo\(.*\)bar\1 b foobar foobar "" | |||
200 | \(\(.\)b\)*\1 b abbbbbba abbbbb bb,b | 200 | \(\(.\)b\)*\1 b abbbbbba abbbbb bb,b |
201 | \(\(.\)b\)*\1 b abbbbbbbbbbbbbba abbbbbbbbbbbbb bb,b | 201 | \(\(.\)b\)*\1 b abbbbbbbbbbbbbba abbbbbbbbbbbbb bb,b |
202 | \(\(.\)b\)*\1 b abbbbbbbbbbbbbbba abbbbbbbbbbbbbbb bb,b | 202 | \(\(.\)b\)*\1 b abbbbbbbbbbbbbbba abbbbbbbbbbbbbbb bb,b |
203 | # these used to segfault, buffer underflow in engine.c, backref() | ||
204 | \(^a\)*\(b.\)\2 b^ sbxbxe bxbx -,bx | ||
205 | \([[:<:]]a\)*\(b.\)\2 b^ sbxbxe bxbx -,bx | ||
203 | 206 | ||
204 | # ordinary repetitions | 207 | # ordinary repetitions |
205 | ab*c & abc abc | 208 | ab*c & abc abc |