diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2020-12-28 21:41:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2020-12-28 21:41:56 +0000 |
commit | 49fa3e9f2bfe1fe8be61d48565877af690263ae1 (patch) | |
tree | 841ab9a4d2ba2f8d7daf905f7c77e12eb881d74f /regress/lib | |
parent | 1b62530488e4386a26357e0c221a715d72ffd4df (diff) |
Fix an off-by-one error in the marking of the O_CH operator following
an OOR2 operator. Also includes a regress test for the issue.
From FreeBSD via miod@
Diffstat (limited to 'regress/lib')
-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 ee019f0a04f..f400b8575b7 100644 --- a/regress/lib/libc/regex/tests +++ b/regress/lib/libc/regex/tests @@ -1,4 +1,4 @@ -# $OpenBSD: tests,v 1.8 2016/05/26 14:23:55 schwarze Exp $ +# $OpenBSD: tests,v 1.9 2020/12/28 21:41:55 millert Exp $ # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ # regular expression test set @@ -592,3 +592,6 @@ Char \([a-z0-9_]*\)\[.* b Char xyz[k Char xyz[k xyz a?b - ab ab -\{0,1\}[0-9]*$ b -5 -5 +# FreeBSD PR 130504 +(.|())(b) - ab ab +(()|.)(b) - ab ab |