Ruby Vulnerability Fixed In Ubuntu Hardy Heron

It appears that Ubuntu guys pushed the patch to fix the security vulnerability we’re all going crazy over. I just applied the patch this morning and below is the result of my test for Ruby array.

irb(main):001:0> a = []
=> []
irb(main):002:0> a[0x7fffffff] = "A"
IndexError: index 2147483647 too big
from (irb):2:in `[]='
from (irb):2
irb(main):003:0>

Rather than crashing, it just throws IndexError exception. After a short testing, it appears that nothing’s breaking. Very nicely done.

Comments

Leave a Reply

You must be logged in to post a comment.