vm.c: check object type before concatenating strings.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-02-03 10:41:09 +09:00
parent ae3c99767a
commit 903c5f978a
+1
View File
@@ -2756,6 +2756,7 @@ RETRY_TRY_BLOCK:
}
CASE(OP_STRCAT, B) {
mrb_ensure_string_type(mrb, regs[a]);
mrb_str_concat(mrb, regs[a], regs[a+1]);
NEXT;
}