purepng
purepng copied to clipboard
Fix iTXt compression_flag off-by-one error
According to http://www.w3.org/TR/PNG/#11iTXt the byte after the first instance of null separator (zerobyte
) is used to indicate that the text content is compressed - the compression flag.
This fixes a bug where the null separator index is used by accident when checking for the compression flag.