Imagesharp: Png Decode ''CRC Error. PNG Image chunk is corrupt"

Created on 8 Mar 2017  路  3Comments  路  Source: SixLabors/ImageSharp

I am try load this png image, but somthing wrong, how to by pass this error.
Image display oke

Png Decode ''CRC Error. PNG Image chunk is corrupt"

bug_png

Sori if my english not good

formats bug

Most helpful comment

Checked with TweakPNG. The image is corrupt:
crc

Is this image coming from a trustworthy source?
https://www.cvedetails.com/vulnerability-list/vendor_id-7294/Libpng.html

All 3 comments

Checked with TweakPNG. The image is corrupt:
crc

Is this image coming from a trustworthy source?
https://www.cvedetails.com/vulnerability-list/vendor_id-7294/Libpng.html

@blackcity Thanks for investigating. 馃憤

I had a look also using PngAnalyzer which was able to decode the image as can windows itself which suggests to me that the default behaviour of most decoders is to jump out as soon a we hi the end marker.

@vinhhrv I've changed the code to do the same. The image now decodes properly so get the next version once it has finished building.

@JimBobSquarePants thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agoretsky picture agoretsky  路  4Comments

JimBobSquarePants picture JimBobSquarePants  路  3Comments

FelixLeChat picture FelixLeChat  路  3Comments

jarroda picture jarroda  路  3Comments

marcpabst picture marcpabst  路  3Comments