Should handle break from funcall(); fix #3434

This issue was reported by https://hackerone.com/d4nny
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-13 18:45:20 +09:00
parent f198530444
commit c2ddcd4517
+1 -1
View File
@@ -1733,7 +1733,7 @@ RETRY_TRY_BLOCK:
acc = ci->acc;
mrb->c->stack = ci->stackent;
cipop(mrb);
if (acc == CI_ACC_SKIP) {
if (acc == CI_ACC_SKIP || acc == CI_ACC_DIRECT) {
mrb->jmp = prev_jmp;
return v;
}