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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-10-27 01:06:15 +09:00
parent 57e30b3be3
commit 614927447a
+1
View File
@@ -2178,6 +2178,7 @@ RETRY_TRY_BLOCK:
CASE(OP_STRCAT) {
/* A B R(A).concat(R(B)) */
mrb_str_concat(mrb, regs[GETARG_A(i)], regs[GETARG_B(i)]);
regs = mrb->c->stack;
NEXT;
}