aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Herczeg <hzmester@freemail.hu>2023-12-30 19:56:34 +0000
committerZoltan Herczeg <hzmester@freemail.hu>2023-12-30 19:56:34 +0000
commitf1c314321cb51c5a79dfd42db2332b66d827854c (patch)
tree4bc2b9019d0eb0b0d5624304779e9aabeeffafd2
parent16759fc099731fd1af3dfdf7a4663fcdb579d2fd (diff)
downloadpcre-f1c314321cb51c5a79dfd42db2332b66d827854c.tar.gz
Disable early fails for atomic blocks
-rw-r--r--src/pcre2_jit_compile.c5
-rw-r--r--src/pcre2_jit_test.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c
index fb0bf27c..fbb30a4a 100644
--- a/src/pcre2_jit_compile.c
+++ b/src/pcre2_jit_compile.c
@@ -1558,11 +1558,6 @@ do
}
break;
- case OP_ONCE:
- if (count < 2)
- count = 2;
- /* Fall through */
-
case OP_BRA:
case OP_CBRA:
prev_count = count;
diff --git a/src/pcre2_jit_test.c b/src/pcre2_jit_test.c
index b73a636b..55665b8d 100644
--- a/src/pcre2_jit_test.c
+++ b/src/pcre2_jit_test.c
@@ -519,7 +519,7 @@ static struct regression_test_case regression_test_cases[] = {
{ MU, A, 0, 0 | F_PROPERTY, "\\X{2,4}..", "#\xcc\x8d#\xcc\x8d##" },
{ MU, A, 0, 0, "(c(ab)?+ab)+", "cabcababcab" },
{ MU, A, 0, 0, "(?>(a+)b)+aabab", "aaaabaaabaabab" },
- { MU | PCRE2_ENDANCHORED, A, 0, 0, "(?>.+?)", "ab" },
+ { MU, A, 0, 0 | F_NOMATCH, "(?>a*|)a", "aaa" },
/* Possessive quantifiers. */
{ MU, A, 0, 0, "(?:a|b)++m", "mababbaaxababbaam" },