mirror of
https://github.com/ruby/ruby.git
synced 2026-08-01 02:20:48 +08:00
The Range Marshal compat dumper would allocate an Object with no size information, hence get a 32B slot with enough space for 2 ivars, then insert 3 ivars causing it to spill. This isn't a big problem, but somewhat shows that the interface isn't WVA aware. By introducing `rb_class_allocate_instance_capa` we can directly allocate an object with enough room.