vm.c (OP_STRCAT): mrb_str_concat may call VM recursively

And recursive calls may reallocate call-info stack.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-10-20 19:30:45 +09:00
parent d8e6987e4c
commit 1f5ba7e01d
+1
View File
@@ -2774,6 +2774,7 @@ RETRY_TRY_BLOCK:
CASE(OP_STRCAT, B) {
mrb_assert(mrb_string_p(regs[a]));
mrb_str_concat(mrb, regs[a], regs[a+1]);
ci = mrb->c->ci;
NEXT;
}