From: cristy Date: Sun, 2 Feb 2014 19:54:09 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2716 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89da59aecf4f75f2304ec3f8b8f2ed581cc0b705;p=imagemagick --- diff --git a/MagickCore/property.c b/MagickCore/property.c index b4c093141..3d7f5c01a 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -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