RFR: 8376510: Raster.createBandedRaster(int, int, int, int, int[], int[], Point) does not check for negative scanlineStride
Phil Race
prr at openjdk.org
Tue Jan 27 19:13:35 UTC 2026
We specify that scanlineStride < 0 will throw IAE, but it was not checked up front in all cases, so sometimes would be IAE and sometimes NegativeArrayIndexException.
Add an explicit check.
-------------
Commit messages:
- 8376510
Changes: https://git.openjdk.org/jdk/pull/29454/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29454&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8376510
Stats: 7 lines in 2 files changed: 3 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/29454.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29454/head:pull/29454
PR: https://git.openjdk.org/jdk/pull/29454
More information about the client-libs-dev
mailing list