Permalink
Browse files

Ensure size of the stack before handling exceptions; fix #3693

  • Loading branch information...
matz committed Jun 15, 2017
1 parent af6041f commit 988e2ced0380e6783db854173d004d5ac64548ac
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -1836,6 +1836,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
if (ci != ci0) {
mrb->c->stack = ci[1].stackent;
}
stack_extend(mrb, irep->nregs);
pc = mrb->c->rescue[--ci->ridx];
}
else {

0 comments on commit 988e2ce

Please sign in to comment.