Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise RangeError for out of bounds unpack_at
This corrects the error raised for the case where the unpack spec requests a size that's outside the string, which relates to CVE-2018-8778. The other two cases that raised the ArgumentError for "outside of string" appear to be correct, since making them raise RangeError causes spec failures. This addresses a security spec failure as shown in jruby#6304.
- Loading branch information