Hi,

Intermittently, on client installations of our software that uses ImageMagick 6.2.5, the call to cmsCreateTransform() inside ProfileImage() returns a NULL value. Is there any way to get any idea of why this is happening, and perhaps build it into the exception that is thrown, so we can catch it and display it?

Also, it looks like the code in profile.c (in both 6.2.5 and 6.2.8) mistakenly calls cmsDeleteTransform() on the NULL value (causing a NULL dereference in the lcms code).

--- profile.c.orig      2006-08-14 16:04:29.375000000 +1000
+++ profile.c   2006-08-14 16:03:51.687500000 +1000
@@ -509,7 +509,6 @@
          (void) cmsCloseProfile(target_profile);
          if (transform == (cmsHTRANSFORM) NULL)
            {
-              cmsDeleteTransform(transform);
ThrowBinaryException(ImageError,"UnableToCreateColorTransform",
                name);
            }

Thanks,
;) james.
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to