[OpenJDK 2D-Dev] REG : JDK-8160943 : [PIT] new failure of closed/javax/imageio/ReadAllThumbnailsTest.java

Jayathirth D V jayathirth.d.v at oracle.com
Fri Jul 8 11:08:54 UTC 2016



In HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8152672"JDK-8152672 we modified skipImage() in JpegImageReader.java and added tighter checks for parsing Jpeg data.


We have to find any marker,0 or EOF after we find "FF" while parsing JPEG data.

But in HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8160943"JDK-8160943 we have gap between APP0 marker and DQT(FF DB) marker which contains data "00 FF".


APP0_End -> 00 FF -> FF DB(DQT)


So after we skip APP0 marker we find two bytes of data which is "FF FF". In the present code we consider this as invalid marker.

Because of this HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8160943"JDK-8160943 is failing.


Is the length of APP0 marker not valid in the image or we should not consider "FF FF" as invalid maker?

Please let me know your input.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160708/7f9b618f/attachment.html>

More information about the 2d-dev mailing list