]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7959
authorCristy <urban-warrior@imagemagick.org>
Wed, 25 Apr 2018 00:35:03 +0000 (20:35 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 25 Apr 2018 00:35:03 +0000 (20:35 -0400)
coders/miff.c
coders/mpc.c

index 05b9ceeba6e91b642164346e5febbb8e4f0ac87a..8ec0a45650e568261f75e22904a220862ac9be27 100644 (file)
@@ -1112,7 +1112,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
     /*
       Verify that required image information is defined.
     */
-    if ((LocaleCompare(id,"ImageMagick") != 0) ||
+    if ((LocaleCompare(id,"ImageMagick") != 0) || (image->depth > 128) ||
         (image->storage_class == UndefinedClass) ||
         (image->compression == UndefinedCompression) ||
         (image->colorspace == UndefinedColorspace) ||
index b6e36763c053d5ba10b8a90812a7b0e50fa65cac..16bb1b9b1ddf0bc8bb451023b5d58ce942ca82c8 100644 (file)
@@ -782,7 +782,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
     /*
       Verify that required image information is defined.
     */
-    if ((LocaleCompare(id,"MagickCache") != 0) ||
+    if ((LocaleCompare(id,"MagickCache") != 0) || (image->depth > 128) ||
         (image->storage_class == UndefinedClass) ||
         (image->compression == UndefinedCompression) ||
         (image->columns == 0) || (image->rows == 0) ||
@@ -837,7 +837,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
           *p++=(char) c;
         } while (c != (int) '\0');
       }
-   if (profiles != (LinkedListInfo *) NULL)
+    if (profiles != (LinkedListInfo *) NULL)
       {
         const char
           *name;