Hello,
take any jpeg image with exif profile and no other profiles, and run this:
convert -set Jpeg:colorspace "" -set Jpeg:sampling-factor "" image.jpg image.png
Then, "identify -verbose image.png" will fail the assertion when
calling GetValueFromSplayTree() in property.c, line 1416. The
intention is, obviously, to test whether the property already exists,
but for the first property image->properties will be NULL. The fix is
below.
Index: property.c
===================================================================
--- property.c (revision 37)
+++ property.c (working copy)
@@ -1413,8 +1413,8 @@
break;
}
}
- p=(const char *) GetValueFromSplayTree((SplayTreeInfo *)
- image->properties,key);
+ p= image->properties? (const char *)
GetValueFromSplayTree((SplayTreeInfo *)
+ image->properties,key) : NULL;
if (p == (const char *) NULL)
(void) SetImageProperty((Image *) image,key,value);
value=DestroyString(value);
--
Alexander E. Patrakov
_______________________________________________
Magick-developers mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-developers