Fixed a bug in ci address shifting; fix #3423

Dinko Galetic and Denis Kasak reported the issue and the fix.
(via https://hackerone.com/dgaletic).
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-08 16:22:48 +09:00
parent be550f04e4
commit f3d4ff16d3
+2 -1
View File
@@ -1705,9 +1705,10 @@ RETRY_TRY_BLOCK:
mrb->jmp = prev_jmp;
return v;
}
cipop(mrb);
ci = mrb->c->ci;
acc = ci->acc;
mrb->c->stack = ci->stackent;
cipop(mrb);
if (acc == CI_ACC_SKIP) {
mrb->jmp = prev_jmp;
return v;