vm.c: `ci->acc` (`int16_t`) may overflow.

parent c0f39bca
...@@ -2252,14 +2252,14 @@ RETRY_TRY_BLOCK: ...@@ -2252,14 +2252,14 @@ RETRY_TRY_BLOCK:
mrb->jmp = prev_jmp; mrb->jmp = prev_jmp;
return v; return v;
} }
pc = ci[0].pc; pc = ci->pc;
DEBUG(fprintf(stderr, "from :%s\n", mrb_sym_name(mrb, ci->mid))); DEBUG(fprintf(stderr, "from :%s\n", mrb_sym_name(mrb, ci->mid)));
proc = mrb->c->ci->proc; proc = ci->proc;
irep = proc->body.irep; irep = proc->body.irep;
pool = irep->pool; pool = irep->pool;
syms = irep->syms; syms = irep->syms;
regs[acc] = v; ci[1].stack[0] = v;
mrb_gc_arena_restore(mrb, ai); mrb_gc_arena_restore(mrb, ai);
} }
JUMP; JUMP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment