Skip to content

Commit

Permalink
Clear VM stack in OP_EXEC; ref #3678
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 31, 2017
1 parent eb69eeb commit b0f2bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm.c
Expand Up @@ -2630,6 +2630,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
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;
Expand Down

0 comments on commit b0f2bc3

Please sign in to comment.