mrb_str_concat() may call VM resursively thus may reallocate VM stack; close #3000

parent 57e30b3b
...@@ -2178,6 +2178,7 @@ RETRY_TRY_BLOCK: ...@@ -2178,6 +2178,7 @@ RETRY_TRY_BLOCK:
CASE(OP_STRCAT) { CASE(OP_STRCAT) {
/* A B R(A).concat(R(B)) */ /* A B R(A).concat(R(B)) */
mrb_str_concat(mrb, regs[GETARG_A(i)], regs[GETARG_B(i)]); mrb_str_concat(mrb, regs[GETARG_A(i)], regs[GETARG_B(i)]);
regs = mrb->c->stack;
NEXT; NEXT;
} }
......
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