diff options
author | Erik Osheim <d_m@plastic-idolatry.com> | 2012-12-17 23:28:08 -0500 |
---|---|---|
committer | Erik Osheim <d_m@plastic-idolatry.com> | 2012-12-20 11:24:15 -0500 |
commit | cf7b51db3b289d2b1782ffb863912217936dcccb (patch) | |
tree | fb59d53d6eb8376a1f1be0c520ff8f9380ff2234 /META-INF | |
parent | e14917528e1c080a7f10785e21de36f3a7769718 (diff) | |
download | scala-cf7b51db3b289d2b1782ffb863912217936dcccb.tar.gz scala-cf7b51db3b289d2b1782ffb863912217936dcccb.tar.bz2 scala-cf7b51db3b289d2b1782ffb863912217936dcccb.zip |
Fix Iterator#copyToArray (fixes SI-6827).
As pointed out in #scala, when using a non-zero start it's possible
to get an ArrayIndexOutOfBoundsException due to an incorrect bounds
check. This patch fixes this, as well as another potential bounds
error, and adds test cases.
Incorporates some other suggestions by Som-Snytt to ensure that
callers will get useful error messages in cases where the start
parameter is wrong (negative or out-of-array-bounds).
Review by @som-snytt.
Diffstat (limited to 'META-INF')
0 files changed, 0 insertions, 0 deletions