From bd9808aea4940193cc9989fcbf3d23f5cef9f787 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 24 Apr 2018 20:35:03 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7959 --- coders/miff.c | 2 +- coders/mpc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.40.0