From: Cristy Date: Wed, 25 Apr 2018 00:35:03 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7959 X-Git-Tag: 7.0.7-29~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd9808aea4940193cc9989fcbf3d23f5cef9f787;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7959 --- diff --git a/coders/miff.c b/coders/miff.c index 05b9ceeba..8ec0a4565 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -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) || diff --git a/coders/mpc.c b/coders/mpc.c index b6e36763c..16bb1b9b1 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -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;