[OpenJDK 2D-Dev] RFR: 8261107: ArrayIndexOutOfBoundsException in the ICC_Profile.getInstance(InputStream)
Sergey Bylokhov
serb at openjdk.java.net
Thu Feb 4 03:23:57 UTC 2021
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
More information about the 2d-dev
mailing list