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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-04-11 14:11:44 +09:00
parent d97a37eb7b
commit ae5b5ce575
+1
View File
@@ -2228,6 +2228,7 @@ RETRY_TRY_BLOCK:
while (b < lim) {
mrb_hash_set(mrb, hash, regs[b], regs[b+1]);
regs = mrb->c->stack;
b+=2;
}
regs[GETARG_A(i)] = hash;