From 89da59aecf4f75f2304ec3f8b8f2ed581cc0b705 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 2 Feb 2014 19:54:09 +0000 Subject: [PATCH] --- MagickCore/property.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0