3 ms·
a = Array.new a[0x7fffffff] = 55 (irb):14: [BUG] Segmentation fault Presumably this is one of the attack vectors that was fixed.
by ROFISH 18y ago
a = Array.new
a[0x7fffffff] = 55
(irb):14: [BUG] Segmentation fault
Presumably this is one of the attack vectors that was fixed.
- tptacek 18y agoYes, it was. Go look what happens in gdb when you do that.
- gaika 18y agoI'm getting a different error with x86_64, but probably not protected against other bugs: (irb):3:in `[]=': failed to allocate memory (NoMemoryError) from (irb):3:in `irb_binding' from /usr/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding' from /usr/lib/ruby/1.8/irb/workspace.rb:52
- tptacek 18y agosizeof(long) is different for you, and fixnum is 63(?) bits. Try 0x7fffffffffffffff.