diff options
author | 2016-05-26 14:23:55 +0000 | |
---|---|---|
committer | 2016-05-26 14:23:55 +0000 | |
commit | 31242bee99462b51f438e69a09c2e8624beb5c37 (patch) | |
tree | de0cd0b2176840319d3177accd1107ca3caf78af /regress/lib/libc/regex/tests | |
parent | Fix an oversight that caused the test program to segfault: (diff) | |
download | wireguard-openbsd-31242bee99462b51f438e69a09c2e8624beb5c37.tar.xz wireguard-openbsd-31242bee99462b51f438e69a09c2e8624beb5c37.zip |
tests for the two segfaults in backref() that were just fixed
Diffstat (limited to 'regress/lib/libc/regex/tests')
-rw-r--r-- | regress/lib/libc/regex/tests | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/lib/libc/regex/tests b/regress/lib/libc/regex/tests index ab3d10aefe4..ee019f0a04f 100644 --- a/regress/lib/libc/regex/tests +++ b/regress/lib/libc/regex/tests @@ -1,4 +1,4 @@ -# $OpenBSD: tests,v 1.7 2016/05/26 13:38:22 schwarze Exp $ +# $OpenBSD: tests,v 1.8 2016/05/26 14:23:55 schwarze Exp $ # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ # regular expression test set @@ -200,6 +200,9 @@ foo\(.*\)bar\1 b foobar foobar "" \(\(.\)b\)*\1 b abbbbbba abbbbb bb,b \(\(.\)b\)*\1 b abbbbbbbbbbbbbba abbbbbbbbbbbbb bb,b \(\(.\)b\)*\1 b abbbbbbbbbbbbbbba abbbbbbbbbbbbbbb bb,b +# these used to segfault, buffer underflow in engine.c, backref() +\(^a\)*\(b.\)\2 b^ sbxbxe bxbx -,bx +\([[:<:]]a\)*\(b.\)\2 b^ sbxbxe bxbx -,bx # ordinary repetitions ab*c & abc abc |