Permalink
Browse files

vm.c: mrb_hash_set() may reallocate VM stack; close #3133

  • Loading branch information...
matz committed Apr 11, 2016
1 parent d97a37e commit ae5b5ce5758efaaf05fefe443ff902714b641f3d
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -2228,6 +2228,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
while (b < lim) {
mrb_hash_set(mrb, hash, regs[b], regs[b+1]);
regs = mrb->c->stack;
b+=2;
}
regs[GETARG_A(i)] = hash;

0 comments on commit ae5b5ce

Please sign in to comment.