Page 1 of 1
ImageMagick SEGFAULTs reading PNG
Posted: 2009-09-03T16:31:31-07:00
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?
Re: ImageMagick SEGFAULTs reading PNG
Posted: 2009-09-03T16:53:31-07:00
by magick
Post a URL to your PNG so we can download and inspect it. Thanks.
Re: ImageMagick SEGFAULTs reading PNG
Posted: 2009-09-04T01:28:03-07:00
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
Re: ImageMagick SEGFAULTs reading PNG
Posted: 2009-09-04T17:22:49-07:00
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.
Re: ImageMagick SEGFAULTs reading PNG
Posted: 2009-09-04T17:24:09-07:00
by ruibm
Cool, that's mighty fast! I'll have a crack at it next week then, thanks!
Re: ImageMagick SEGFAULTs reading PNG
Posted: 2009-10-15T22:34:19-07:00
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