]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 19:54:09 +0000 (19:54 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 19:54:09 +0000 (19:54 +0000)
MagickCore/property.c

index b4c093141cb8247c8b36ae834bf74f8b731f3a61..3d7f5c01a9c555ccbc6382e878d7f13ec2c7edb7 100644 (file)
@@ -1566,6 +1566,8 @@ static MagickBooleanType GetICCProperty(const Image *image,const char *property,
     profile=GetImageProfile(image,"icm");
   if (profile == (StringInfo *) NULL)
     return(MagickFalse);
+  if (GetStringInfoLength(profile) < 128)
+    return(MagickFalse);  /* minimum ICC profile length */
 #if defined(MAGICKCORE_LCMS_DELEGATE)
   {
     cmsHPROFILE