mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c46f9e0793
when converting a shared/static string (IREP_TT_SSTR) to heap-allocated (IREP_TT_STR), copy the original content to the new buffer. previously, the original content was lost when allocating new memory, leaving the first bytes uninitialized. this caused find_pool_str() to read uninitialized memory via memcmp() when searching for duplicate strings. reported by OSS-Fuzz. Co-authored-by: Claude <noreply@anthropic.com>