Source file that causes the SEGV:
https://www.dropbox.com/s/l6vmxamc8i8xy ... cc_00?dl=0
IM version: ImageMagick-6.8.9-8
32-bit Debian Wheezy (TKL)
64-bit Ubuntu 14.04
Command line: convert $filename png:/dev/null
Code: Select all
gdb run:
7a618fe in GetEXIFProperty (property=<optimized out>, image=0x80767e8) at magick/property.c:1412
1412 if ((isprint((int) p[i]) != 0) || (p[i] == '\0'))
gdb> context
_______________________________________________________________________________
eax:B6902988 ebx:B7F7FF3C ecx:B5901008 edx:00000000 eflags:00010246
esi:B5901008 edi:00FFFFEB esp:BFFF0550 ebp:070891BB eip:B7A618FE
cs:0073 ds:007B es:007B fs:0000 gs:0033 ss:007B o d I t s Z a P c
[007B:BFFF0550]---------------------------------------------------------[stack]
BFFF0580 : A8 A3 04 08 70 B9 04 08 - 70 B8 04 08 F0 BE 04 08 ....p...p.......
BFFF0570 : F0 BE 04 08 F4 0F B4 B7 - E8 BE 04 08 78 C7 04 08 ............x...
BFFF0560 : 00 00 52 40 00 00 00 00 - 00 00 F0 3F B8 3C 06 08 ..R@.......?.<..
BFFF0550 : EC FF FF 00 01 00 00 00 - 74 91 08 08 D4 46 E7 B7 ........t....F..
[007B:B5901008]---------------------------------------------------------[ data]
B5901008 : 2E 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
B5901018 : 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
[0073:B7A618FE]---------------------------------------------------------[ code]
=> 0xb7a618fe <GetImageProperty+8734>: movzbl 0x0(%ebp,%edx,1),%ecx
0xb7a61903 <GetImageProperty+8739>: mov (%eax),%eax
0xb7a61905 <GetImageProperty+8741>: movzbl %cl,%edi
0xb7a61908 <GetImageProperty+8744>: testb $0x40,0x1(%eax,%edi,2)
0xb7a6190d <GetImageProperty+8749>: jne 0xb7a61913 <GetImageProperty+8755>
0xb7a6190f <GetImageProperty+8751>: test %cl,%cl
------------------------------------------------------------------------------
gdb> bt
#0 0xb7a618fe in GetEXIFProperty (property=<optimized out>, image=0x80767e8) at magick/property.c:1412
#1 GetImageProperty (image=image@entry=0x80767e8, property=property@entry=0xbfff37d0 "exif:*") at magick/property.c:2113
#2 0xb7a6d1d2 in SetImageProfileInternal (image=0x80854b8, name=0xbfff4830 "exif", profile=0x80854b8, recursive=MagickFalse) at magick/profile.c:1740
#3 0xb7a6e447 in SetImageProfile (image=0x80854b8, image@entry=0x80767e8, name=0x0, name@entry=0xbfff4830 "exif", profile=profile@entry=0x80854b8) at magick/profile.c:1747
#4 0xb7deb756 in ReadProfile (jpeg_info=0xbfff5b6c) at coders/jpeg.c:709
#5 0xb742c68b in ?? () from /usr/lib/i386-linux-gnu/libjpeg.so.8
#6 0xb7429d2e in ?? () from /usr/lib/i386-linux-gnu/libjpeg.so.8
#7 0xb7422927 in jpeg_consume_input () from /usr/lib/i386-linux-gnu/libjpeg.so.8
#8 0xb7422ba3 in jpeg_read_header () from /usr/lib/i386-linux-gnu/libjpeg.so.8
#9 0xb7dee6fe in ReadJPEGImage (image_info=0x8055798, exception=0x804a318) at coders/jpeg.c:1071
#10 0xb787f6de in ReadImage (image_info=image_info@entry=0x8051690, exception=exception@entry=0x804a318) at magick/constitute.c:492
#11 0xb78821f1 in ReadImages (image_info=image_info@entry=0x8051690, exception=exception@entry=0x804a318) at magick/constitute.c:853
#12 0xb75f7a4d in ConvertImageCommand (image_info=0x8051690, argc=0x3, argv=0x804b3e8, metadata=0x0, exception=0x804a318) at wand/convert.c:619
#13 0xb76d2546 in MagickCommandGenesis (image_info=0x804d588, command=0x80488a0 <ConvertImageCommand@plt>, argc=0x3, argv=0xbffff594, metadata=0x0, exception=0x804a318) at wand/mogrify.c:168
#14 0x08048a55 in ConvertMain (argv=0xbffff594, argc=0x3) at utilities/convert.c:81
#15 main (argc=0x3, argv=0xbffff594) at utilities/convert.c:92