RFR: 8376510: Raster.createBandedRaster(int, int, int, int, int[], int[], Point) does not check for negative scanlineStride

Alexander Zvegintsev azvegint at openjdk.org
Thu Jan 29 15:14:48 UTC 2026


On Tue, 27 Jan 2026 19:04:04 GMT, Phil Race <prr at openjdk.org> wrote:

> 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.

Marked as reviewed by azvegint (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/29454#pullrequestreview-3723337153


More information about the client-libs-dev mailing list