image icon indicating copy to clipboard operation
image copied to clipboard

Failure to decode PNGs with invalid checksums for ancillary data

Open awused opened this issue 4 years ago • 0 comments

Expected

PNGs with invalid checksums for ancillary data (ICC profiles, in my case) should be decoded without said ancillary data. Or at least the option should be available to skip the invalid chunk, as most implementations will tolerate these invalid checksums with a warning.

Actual behaviour

The entire PNG decoding process fails with no option for recovery.

Reproduction steps

There's a similar bug for Go's image library with a sample image: https://github.com/golang/go/issues/43382

awused avatar Aug 01 '21 23:08 awused