Skip to content

Commit

Permalink
Add missing SCS label in pcre2_study()
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipHazel committed Aug 28, 2024
1 parent 3e4d3b7 commit 727edc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pcre2_study.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ do
case OP_ASSERTBACK_NOT:
case OP_ASSERT_NA:
case OP_ASSERTBACK_NA:
case OP_ASSERT_SCS:
ncode += GET(ncode, 1);
while (*ncode == OP_ALT) ncode += GET(ncode, 1);
ncode += 1 + LINK_SIZE;
Expand Down Expand Up @@ -1253,12 +1254,14 @@ do
tcode += GET(tcode, 1 + 2*LINK_SIZE);
break;

/* Skip over lookbehind and negative lookahead assertions */
/* Skip over lookbehind, negative lookahead, and scan substring
assertions */

case OP_ASSERT_NOT:
case OP_ASSERTBACK:
case OP_ASSERTBACK_NOT:
case OP_ASSERTBACK_NA:
case OP_ASSERT_SCS:
do tcode += GET(tcode, 1); while (*tcode == OP_ALT);
tcode += 1 + LINK_SIZE;
break;
Expand Down

0 comments on commit 727edc8

Please sign in to comment.