[OpenJDK 2D-Dev] RFR: 8270893: IndexOutOfBoundsException while reading large TIFF file

Phil Race prr at openjdk.java.net
Wed Jul 21 22:18:44 UTC 2021

On Wed, 21 Jul 2021 04:22:05 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> Is it possible to create a testcase for this fix? Probably this regression should be fixed in jdk17?

FWIW the fixer had already written :
"Also to hit this code we need stream/file with at-least 1MB of IFD data, that's why there is no regression test"

Maybe 1Mb isn't actually a blocker, and it would be good to learn if we can create a TIFF image of that size and have github accept it.

But we definitely should run all the relevant existing regression tests.

As for JDk 17, we are in RDP 2 and this has been out there for exactly (?) 12 months until the first report and will need backporting anyway to other release trains.
So it is safer to put in 18 and backport later to a 17 update


PR: https://git.openjdk.java.net/jdk/pull/4836

More information about the 2d-dev mailing list