From 63829d17deb2a27490fc9f470ddf755bca3855f2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 2 Mar 2018 20:33:49 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6681 --- coders/mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/mpc.c b/coders/mpc.c index ee95e6f84..97d33c6d1 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -784,7 +784,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) (image->compression == UndefinedCompression) || (image->columns == 0) || (image->rows == 0) || (image->number_channels > MaxPixelChannels) || - (image->number_meta_channels > MaxPixelChannels) || + (image->number_meta_channels > (MaxPixelChannels-8)) || ((image->number_channels+image->number_meta_channels) >= MaxPixelChannels)) { if (profiles != (LinkedListInfo *) NULL) -- 2.40.0