[OpenJDK 2D-Dev]  RFR: [JDK-8194489] Incorrect size computation at BandedSampleModel.createDataBuffer
Prahalad Kumar Narayanan
prahalad.kumar.narayanan at oracle.com
Fri Jan 5 05:30:56 UTC 2018
Good day to you.
Request your time to review the fix for the bug:
JDK-8194489 Incorrect size computation at BandedSampleModel . createDataBuffer
. The method BandedSampleModel . createDataBuffer does not consider number of banks and band offsets while computing the required memory size.
. As a result, ArrayIndexOutOfBounds exception is thrown when setting pixel values on banded sample models having -
. Multiple bands of image data stored in multiple banks of DataBuffer with band offsets
. Multiple bands of image data stored in single bank of DataBuffer
. Appropriate logic has been added to createDataBuffer method.
. All Jtreg test-cases in java/awt/image were run with the build including the fix.
. No regressions were noticed.
Kindly review the changes at your convenience & share your feedback.
Thank you for your time in review
Have a good day
More information about the 2d-dev