[OpenJDK 2D-Dev] [15] RFR JDK-8195841: PNGImageReader.readNullTerminatedString() doesnt check for non-null terminated strings with length equal to maxLen

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Apr 14 15:50:07 UTC 2020


Looks fine.

On 4/13/20 2:40 am, Jayathirth D v wrote:
> Hello All,
> 
> Please review the following fix for JDK 15:
> 
> Bug : https://bugs.openjdk.java.net/browse/JDK-8195841 <https://bugs.openjdk.java.net/browse/JDK-6532025>
> Webrev : http://cr.openjdk.java.net/~jdv/8195841/
> 
> Issue : PNGImageReader doesn’t check null terminated string for keyword when its length is maximum length
> Solution : After we are done with reading the keyword stream make sure that last byte read is NUL.
> 
> Thanks,
> Jay


-- 
Best regards, Sergey.


More information about the 2d-dev mailing list