Some broken data in the InputStream may cause the wrong exception to be thrown - ArrayIndexOutOfBoundsException instead of IllegalArgumentException, if the data is too small and we try to validate it.
------------- Commit messages: - Initial fix Changes: https://git.openjdk.java.net/jdk/pull/2394/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2394&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8261107 Stats: 56 lines in 2 files changed: 54 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/2394.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2394/head:pull/2394 PR: https://git.openjdk.java.net/jdk/pull/2394