Page 1 of 1

SVG file cause core dump

Posted: 2011-06-20T19:05:53-07:00
by helenyan
When I tried to use the imagemagick, I got a problem.
I also use the sample “wand.c” from http://www.imagemagick.org/source/wand.c to test for this image, it also got core dump.
Could you help to check it?
The image can be downloaded from http://uploadingit.com/file/view/jdblqq ... thday.svgz

System OS: i386-pc-solaris2.10
ImageMagick version: ImageMagick-6.6.8-6 / ImageMagick-6.7.0-8
Phenomenon:
When I use BlobToImage() or MagickReadImage() for the attached image Birthday.svgz, it got core dump
When I use the command indentify/convert, there’s no problem.
Gdb Core dump debug log for ImageMagick-6.6.8-6 :

(gdb) bt
#0 0xfe2c578c in strlen () from /usr/lib/libc.so.1
#1 0xfe31d976 in _ndoprnt () from /usr/lib/libc.so.1
#2 0xfe3204fd in fprintf () from /usr/lib/libc.so.1
#3 0xfea6a0f2 in SVGEndElement (context=0x81a63b8, name=0x81c1050 "image") at coders/svg.c:2308
#4 0xfe433450 in xmlParseEndTag1 () from /usr/lib/libxml2.so.2
#5 0xfe437ca1 in xmlParseTryOrFinish () from /usr/lib/libxml2.so.2
#6 0xfe438831 in xmlParseChunk () from /usr/lib/libxml2.so.2
#7 0xfea6b226 in ReadSVGImage (image_info=0x81af9c0, exception=0x8169550) at coders/svg.c:2987
#8 0xfe87a80e in ReadImage (image_info=0x81ab8b0, exception=0x8169550) at magick/constitute.c:578
#9 0xfe84beb1 in BlobToImage (image_info=0x81ab8b0, blob=0x817e480, length=57222, exception=0x8169550) at magick/blob.c:382
#10 0xfee04493 in MagickReadImageBlob (wand=0x817c478, blob=0x817e480, length=57222) at wand/magick-image.c:8510

Gdb Core dump debug log for ImageMagick--6.7.0-8 by wand.c from http://www.imagemagick.org/source/wand.c:
(gdb) bt
#0 0xfe2c578c in strlen () from /usr/lib/libc.so.1
#1 0xfe31d976 in _ndoprnt () from /usr/lib/libc.so.1
#2 0xfe3208c0 in vfprintf () from /usr/lib/libc.so.1
#3 0xfe90afe1 in FormatLocaleFileList (file=0x8061808, format=0xfeb1a140 "image Over %g,%g %g,%g '%s'\n",
operands=0x80407e8 "\033/?\006\201\225?\232\231\231\231\231\231\231窥~j紅薧@吞烫蘚024\\@") at magick/locale.c:276
#4 0xfe90b00e in FormatLocaleFile (file=0x8061808, format=0xfeb1a140 "image Over %g,%g %g,%g '%s'\n") at magick/locale.c:292
#5 0xfea6ecd8 in SVGEndElement (context=0x8091910, name=0x8095a60 "image") at coders/svg.c:2299
#6 0xfe433450 in xmlParseEndTag1 () from /usr/lib/libxml2.so.2
#7 0xfe437ca1 in xmlParseTryOrFinish () from /usr/lib/libxml2.so.2
#8 0xfe438831 in xmlParseChunk () from /usr/lib/libxml2.so.2
#9 0xfea6fcda in ReadSVGImage (image_info=0x806c7e8, exception=0x8061d18) at coders/svg.c:3033
#10 0xfe87b1f6 in ReadImage (image_info=0x80686d8, exception=0x8061d18) at magick/constitute.c:578
#11 0xfee01697 in MagickReadImage (wand=0x80634a0, filename=0x8047d50 "Birthday.svgz") at wand/magick-image.c:8466
#12 0x08050d6a in main ()