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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-15 13:37:27 +09:00
parent af6041f1d0
commit 988e2ced03
+1
View File
@@ -1836,6 +1836,7 @@ RETRY_TRY_BLOCK:
if (ci != ci0) {
mrb->c->stack = ci[1].stackent;
}
stack_extend(mrb, irep->nregs);
pc = mrb->c->rescue[--ci->ridx];
}
else {