VM stack may be reallocated during mrb_hash_get; fix #3771

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-08-10 08:21:43 +09:00
parent 9e0c48ddc6
commit 9826ca54f2
+1 -1
View File
@@ -26,7 +26,7 @@ hash_values_at(mrb_state *mrb, mrb_value hash)
mrb_int argc, i;
int ai;
mrb_get_args(mrb, "*!", &argv, &argc);
mrb_get_args(mrb, "*", &argv, &argc);
result = mrb_ary_new_capa(mrb, argc);
ai = mrb_gc_arena_save(mrb);
for (i = 0; i < argc; i++) {