Hello, this image causes the "identify" command to crash by attempting
to DestroyStringInfo(NULL):
http://olympus.ourlife.ru/gallery/data/media/4/_7054831.jpg

Fix:

--- coders/jpeg.c
+++ coders/jpeg.c
@@ -574,7 +574,7 @@
               break;
             p++;
           }
-          if (*p == '\0')
+          if (i < (long) GetStringInfoLength(profile))
             DestroyStringInfo(SplitStringInfo(profile,i+1));
           (void) CopyMagickString(name,"xmp",MaxTextExtent);
         }


-- 
Alexander E. Patrakov
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to