]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6214
authorCristy <urban-warrior@imagemagick.org>
Sun, 11 Feb 2018 14:11:27 +0000 (09:11 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 11 Feb 2018 14:11:27 +0000 (09:11 -0500)
MagickCore/property.c

index 94f3105e0009b8cb2a7e182f4d28d6f025988d18..26190e1bcd296616aeec19d87a27c2897c1bee3e 100644 (file)
@@ -1330,6 +1330,8 @@ static MagickBooleanType GetEXIFProperty(const Image *image,
   if (tag == (~0UL))
     return(MagickFalse);
   length=GetStringInfoLength(profile);
+  if (length < 6)
+    return(MagickFalse);
   exif=GetStringInfoDatum(profile);
   while (length != 0)
   {