RFR: 8156209 - Add argument checks to BasicImageReader calls

Alan Bateman Alan.Bateman at oracle.com
Fri May 27 15:49:17 UTC 2016



On 27/05/2016 16:12, Jim Laskey (Oracle) wrote:
> http://cr.openjdk.java.net/~jlaskey/8156209/webrev/index.html
> https://bugs.openjdk.java.net/browse/JDK-8156209
You might want to double check the range check in 
ImageStringsReader.hashCode as it looks like it allows count < 0. I 
assume what you want is:
     if (offset < 0 || count < 0 || offset > bytes.length - count) { ...}

-Alan.


More information about the jigsaw-dev mailing list