purepng icon indicating copy to clipboard operation
purepng copied to clipboard

Fix iTXt compression_flag off-by-one error

Open alexfargus opened this issue 3 years ago • 0 comments

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.

alexfargus avatar Jul 01 '21 21:07 alexfargus