Skip to content

Commit

Permalink
Fix off-by-one resize in RegexCompiler (#68097)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Apr 16, 2022
1 parent 02ad325 commit 2d4f2d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3454,7 +3454,7 @@ void EmitLazy(RegexNode node)
// base.runstack[stackpos++] = startingPos;
// base.runstack[stackpos++] = pos;
// base.runstack[stackpos++] = sawEmpty;
EmitStackResizeIfNeeded(3);
EmitStackResizeIfNeeded(4);
if (expressionHasCaptures)
{
EmitStackPush(() =>
Expand Down

0 comments on commit 2d4f2d0

Please sign in to comment.