From: Cristy Date: Sun, 4 Feb 2018 20:02:15 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5365 X-Git-Tag: 7.0.7-23~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af223b025da2ffb56a4e50160448e845f9b5e186;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5365 --- diff --git a/MagickCore/property.c b/MagickCore/property.c index 685eabe87..b06d80be2 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -1742,6 +1742,8 @@ static MagickBooleanType GetXMPProperty(const Image *image,const char *property) profile=GetImageProfile(image,"xmp"); if (profile == (StringInfo *) NULL) return(MagickFalse); + if (GetStringInfoLength(profile) < 17) + return(MagickFalse); if ((property == (const char *) NULL) || (*property == '\0')) return(MagickFalse); xmp_profile=StringInfoToString(profile);