ImageMagick SEGFAULTs reading PNG

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ruibm

ImageMagick SEGFAULTs reading PNG

Post by ruibm »

ImageMagick crashes in release mode and asserts in debug mode when trying to read a corrupt PNG.
This is the assert:

Code: Select all

Assertion failed: (quantum_info->signature == MagickSignature), 
function DestroyQuantumInfo, file magick/quantum.c, line 215.
Is there any workaround to check whether an image is corrupt or not?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick SEGFAULTs reading PNG

Post by magick »

Post a URL to your PNG so we can download and inspect it. Thanks.
ruibm

Re: ImageMagick SEGFAULTs reading PNG

Post by ruibm »

So the image is kind of personal, that's why I didn't publish it in the first place. When opening it on Gimp it does tell me that it is corrupted but it's still able to load it. I'll do a bit of debugging in the imagemagick code to see if I can pin down what the problem is. (if I find some other png that's corrupted I'll stick it online)

Thanks,
rui
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick SEGFAULTs reading PNG

Post by magick »

We have a patch in ImageMagick 6.5.5-7 to fix the problem you reported. It will be available by sometime tomorrow.
ruibm

Re: ImageMagick SEGFAULTs reading PNG

Post by ruibm »

Cool, that's mighty fast! I'll have a crack at it next week then, thanks!
kkzhou

Re: ImageMagick SEGFAULTs reading PNG

Post by kkzhou »

Where can I get the patch?
And I've tried 6.5.6 and the bug is still there.
I use c++ interface and the image's url is

http://WWW.re-hair.com/hair/images/www2.png

thanks
Post Reply