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

parent d97a37eb
...@@ -2228,6 +2228,7 @@ RETRY_TRY_BLOCK: ...@@ -2228,6 +2228,7 @@ RETRY_TRY_BLOCK:
while (b < lim) { while (b < lim) {
mrb_hash_set(mrb, hash, regs[b], regs[b+1]); mrb_hash_set(mrb, hash, regs[b], regs[b+1]);
regs = mrb->c->stack;
b+=2; b+=2;
} }
regs[GETARG_A(i)] = hash; regs[GETARG_A(i)] = hash;
......
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