mirror of
https://github.com/ruby/ruby.git
synced 2026-11-08 01:20:26 +08:00
The embedding check `len + termlen` did not account for the terminator when `len` is close to RB_LEN_MAX. Reject such sizes with ArgumentError as the other string size checks do. Reported-by: SunnyR (https://hackerone.com/sunny-r) Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>