Clear VM stack in OP_EXEC; ref #3678

parent eb69eebf
......@@ -2630,6 +2630,7 @@ RETRY_TRY_BLOCK:
pool = irep->pool;
syms = irep->syms;
stack_extend(mrb, irep->nregs);
stack_clear(regs+1, irep->nregs-1);
ci->nregs = irep->nregs;
pc = irep->iseq;
JUMP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment