Ruby 3.4.11 makes mutation during unpack fail safely
engineeringrubyruntimememory-safetyRuby 3.4.11 includes a correction for String#unpack when its block mutates the source string. The failure illustrates the lifetime assumptions hidden beneath a convenient iterator-style API.