emscripten-ports / libpng

Other
12 stars 8 forks source link

Fixes for premature exit from decoding #3

Open pieper opened 4 years ago

pieper commented 4 years ago

Need to change errors to warnings to read sample file with this code:

https://github.com/covictory/pngdump

https://github.com/covictory/pngdump/blob/master/testsite/cxr16bit.png

kripken commented 4 years ago

Thanks @pieper , should these be submitted upstream perhaps? (they don't seem specific to emscripten at first glance)

pieper commented 4 years ago

Hi - good question - I didn't try but could investigate.

I noticed a note that something similar had been done in other parts of the libpng code. Maybe this is just in the way error handling happens in emscripten leads to an abort instead of just a message.

I'm rebuilding now with this project's build script and can see what happens for different libpng versions.