Permalink
Browse files

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).
  • Loading branch information...
matz committed Feb 8, 2017
1 parent be550f0 commit f3d4ff16d39b34585d41c31ffc09a0ffb512ff81
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/vm.c
View
@@ -1705,9 +1705,10 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
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;

0 comments on commit f3d4ff1

Please sign in to comment.