diff options
author | millert <> | 2020-12-28 21:41:55 +0000 |
---|---|---|
committer | millert <> | 2020-12-28 21:41:55 +0000 |
commit | 00341f28ee54ca24a40254ac3a75ffc33bd8f87d (patch) | |
tree | ec338e264485b194d9b34d89b3d6d12f8801ef74 | |
parent | 04d29414d30617d73c961d7bb2e724befc9bf182 (diff) | |
download | openbsd-00341f28ee54ca24a40254ac3a75ffc33bd8f87d.tar.gz openbsd-00341f28ee54ca24a40254ac3a75ffc33bd8f87d.tar.bz2 openbsd-00341f28ee54ca24a40254ac3a75ffc33bd8f87d.zip |
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@
-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 ee019f0a04..f400b8575b 100644 --- a/src/regress/lib/libc/regex/tests +++ b/src/regress/lib/libc/regex/tests | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: tests,v 1.8 2016/05/26 14:23:55 schwarze Exp $ | 1 | # $OpenBSD: tests,v 1.9 2020/12/28 21:41:55 millert 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 |
@@ -592,3 +592,6 @@ Char \([a-z0-9_]*\)\[.* b Char xyz[k Char xyz[k xyz | |||
592 | a?b - ab ab | 592 | a?b - ab ab |
593 | -\{0,1\}[0-9]*$ b -5 -5 | 593 | -\{0,1\}[0-9]*$ b -5 -5 |
594 | 594 | ||
595 | # FreeBSD PR 130504 | ||
596 | (.|())(b) - ab ab | ||
597 | (()|.)(b) - ab ab | ||