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
