[OpenJDK 2D-Dev] [16] RFR JDK-8243674: Remove language tag length limit for iTXt chunk in PNGImageReader

Jayathirth D v JAYATHIRTH.D.V at ORACLE.COM
Wed Jul 29 09:41:24 UTC 2020


Hello All,

Please review the following fix for JDK 16:

Bug : https://bugs.openjdk.java.net/browse/JDK-8243674 <https://bugs.openjdk.java.net/browse/JDK-8243674> 
Webrev : http://cr.openjdk.java.net/~jdv/8243674/webrev.00/ <http://cr.openjdk.java.net/~jdv/8243674/webrev.00/> 

Issue : We have language tag length limit of 80 for iTXt chunk in PNGImageReader which is not spec compliant(http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iTXt <http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iTXt>). There should not be limit on length of language tag.
Solution : Remove language tag restriction of 80. In PNGImageWriter we don’t enforce any limit on language tag length.

Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20200729/1193c3ac/attachment.htm>


More information about the 2d-dev mailing list