[OpenJDK 2D-Dev] [12] RFR JDK-8212116: IIOException "tEXt chunk length is not proper" on opening png file
    Sergey Bylokhov 
    Sergey.Bylokhov at oracle.com
       
    Tue Nov 13 22:52:27 UTC 2018
    
    
  
Looks fine.
On 12/11/2018 20:22, Jayathirth D V wrote:
> Hello All,
> 
> Gentle reminder for review.
> 
> Thanks,
> 
> Jay
> 
> *From:* Jayathirth D V
> *Sent:* Tuesday, October 16, 2018 6:37 PM
> *To:* 2d-dev
> *Subject:* [OpenJDK 2D-Dev] [12] RFR JDK-8212116: IIOException "tEXt chunk length is not proper" on opening png file
> 
> Hello All,
> 
> Please review the following fix in JDK12:
> 
> Bug : https://bugs.openjdk.java.net/browse/JDK-8212116
> 
> Webrev: http://cr.openjdk.java.net/~jdv/8212116/webrev.00/
> 
> Issue : When we try to read PNG image with no text in tEXt chunk we throw IIOException.
> 
> Root cause : While fixing JDK-8191023 <https://bugs.openjdk.java.net/browse/JDK-8191023> we added tighter condition for chunk length in text chunks and we throw IIOException even when text length is 0. But text chunks can contain null text with just keyword and other data according to PNG spec.
> 
> Solution : Allow text chunks with text length 0 in tEXt chunk. As part of this fix I have made changes to zTXt and iTXt chunk also as we will have same problem there also. In JDK-8191023 <https://bugs.openjdk.java.net/browse/JDK-8191023> we added tighter checks for iCCP and sPLT chunk also, but in these chunks we should not allow them to have null compressed profile or null palette. So no changes are made in iCCP & sPLT parse functions.
> 
> Thanks,
> 
> Jay
> 
-- 
Best regards, Sergey.
    
    
More information about the 2d-dev
mailing list