mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c: add runtime type check for OP_STRCAT
Replace mrb_assert with mrb_ensure_string_type to catch codegen bugs even in release builds. This prevents null-dereference crashes when OP_STRCAT receives a non-string first operand due to compiler bugs. Consistent with OP_HASH which uses mrb_ensure_hash_type for similar type safety. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Reference in New Issue
Block a user