VM stack may be reallocated during `mrb_hash_get`; fix #3771

parent 9e0c48dd
......@@ -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++) {
......
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