Project

General

Profile

Bug #19284

Updated by zeke (Zeke Gabrielse) over 1 year ago

If you set the environment variable `RUBY_GC_HEAP_INIT_SLOTS` to anything other than `0`, an integer overflow runtime error occurs: 

 ```ruby 
 RUBY_GC_HEAP_INIT_SLOTS=10000 RUBY_GC_HEAP_INIT_SLOTS=2 ruby -e 'puts "hello, world!"' 
 # => integer overflow: 3689348814741910508 * 8 > 18446744073709551615 (RuntimeError) 
 ``` 

 At this time, I'm not sure if this is platform-specific.

Back