Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-30 Thread Jayathirth D V
From: Phil Race > Sent: Tuesday, January 24, 2017 2:06 AM > To: Prahalad Kumar Narayanan; Brian Burkhalter > Cc: 2d-dev@openjdk.java.net > Subject: Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: > ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) > with RLE4 BMP

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-24 Thread Philip Race
: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP I just noticed something. The bug report says :- > However, I have a public web application that allows users to upload images, > and I was surprised t

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-24 Thread Prahalad Kumar Narayanan
. Thank you for your time Have a good day Prahalad N. -Original Message- From: Phil Race Sent: Tuesday, January 24, 2017 2:06 AM To: Prahalad Kumar Narayanan; Brian Burkhalter Cc: 2d-dev@openjdk.java.net Subject: Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-23 Thread Prahalad Kumar Narayanan
JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP Hi Prahalad, Out of curiosity, did you test against all BMP images in the suite, or only the ones which are RLE4-compressed? Thanks, Brian On Jan 23, 2017, at 6:24 AM, Prahalad Kumar Naray

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-23 Thread Phil Race
ilip Race Cc: 2d-dev@openjdk.java.net; Prahalad Kumar Narayanan Subject: Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP On Jan 20, 2017, at 4:30 PM, Brian Burkhalter <brian.burkhal...@oracle.com> wrote: That is worryi

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-23 Thread Brian Burkhalter
Hi Prahalad, Out of curiosity, did you test against all BMP images in the suite, or only the ones which are RLE4-compressed? Thanks, Brian On Jan 23, 2017, at 6:24 AM, Prahalad Kumar Narayanan wrote: > . Testing with bmptestsuite > . The test suite

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-23 Thread Prahalad Kumar Narayanan
feedback. Thank you once again Have a good day Prahalad N. --- Original message --- From: Brian Burkhalter Sent: Saturday, January 21, 2017 6:05 AM To: Philip Race Cc: 2d-dev@openjdk.java.net; Prahalad Kumar Narayanan Subject: Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsExcept

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-20 Thread Brian Burkhalter
On Jan 20, 2017, at 3:04 PM, Philip Race wrote: > . Note: I couldn't create a suitable image with Delta > encoding in image buffer. Hence this small change could not be tested. Have you looked at image test suites such as

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-20 Thread Philip Race
ar Narayanan; 2d-dev@openjdk.java.net Subject: RE: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP Hi Prahalad, Please find my observations : 1) Since you have moved calculation of "lineStride" to different fu

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-20 Thread Jayathirth D V
: Thursday, January 19, 2017 12:36 PM To: Prahalad Kumar Narayanan; 2d-dev@openjdk.java.net Subject: RE: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP Hi Prahalad, Please find my observations : 1) Since you have moved calc

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-20 Thread Prahalad Kumar Narayanan
12:36 PM To: Prahalad Kumar Narayanan; 2d-dev@openjdk.java.net Subject: RE: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP Hi Prahalad, Please find my observations : 1) Since you have moved calculation of "lineStri

Re: [OpenJDK 2D-Dev] [9] RFR: JDK-8167278: ArrayIndexOutOfBoundsException when calling ImageIO.read(InputStream) with RLE4 BMP

2017-01-18 Thread Jayathirth D V
Hi Prahalad, Please find my observations : 1) Since you have moved calculation of "lineStride" to different function I think we can optimize it more by moving the calculation of lineStride inside the "else if ((lineNo - sourceRegion.y) % scaleY == 0)" because it is not used in "if