Skip to content

Commit

Permalink
Fixed memory out-of-bounds access during regular compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
thqby committed Dec 2, 2024
1 parent 11800f9 commit db97e90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/lib_pcre/pcre/pcre_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,10 +1648,6 @@ for (;;)
if (!skipassert) return code;
/* Fall through */

case OP_CALLOUT:
code += code[1] + PRIV(OP_lengths)[*code]; /* AutoHotkey */
break;

case OP_CREF:
case OP_NCREF:
case OP_RREF:
Expand All @@ -1660,6 +1656,10 @@ for (;;)
code += PRIV(OP_lengths)[*code];
break;

case OP_CALLOUT:
code += code[1] + PRIV(OP_lengths)[*code]; /* AutoHotkey */
break;

default:
return code;
}
Expand Down

0 comments on commit db97e90

Please sign in to comment.