Skip to content

Commit f1c3143

Browse files
committed
Disable early fails for atomic blocks
1 parent 16759fc commit f1c3143

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/pcre2_jit_compile.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,11 +1558,6 @@ do
15581558
}
15591559
break;
15601560

1561-
case OP_ONCE:
1562-
if (count < 2)
1563-
count = 2;
1564-
/* Fall through */
1565-
15661561
case OP_BRA:
15671562
case OP_CBRA:
15681563
prev_count = count;

src/pcre2_jit_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static struct regression_test_case regression_test_cases[] = {
519519
{ MU, A, 0, 0 | F_PROPERTY, "\\X{2,4}..", "#\xcc\x8d#\xcc\x8d##" },
520520
{ MU, A, 0, 0, "(c(ab)?+ab)+", "cabcababcab" },
521521
{ MU, A, 0, 0, "(?>(a+)b)+aabab", "aaaabaaabaabab" },
522-
{ MU | PCRE2_ENDANCHORED, A, 0, 0, "(?>.+?)", "ab" },
522+
{ MU, A, 0, 0 | F_NOMATCH, "(?>a*|)a", "aaa" },
523523

524524
/* Possessive quantifiers. */
525525
{ MU, A, 0, 0, "(?:a|b)++m", "mababbaaxababbaam" },

0 commit comments

Comments
 (0)