Skip to content

Commit

Permalink
Fixed a bug in ci address shifting; fix #3423
Browse files Browse the repository at this point in the history
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 f3d4ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3d4ff1

Please sign in to comment.