From: Cristy Date: Tue, 3 Apr 2018 18:22:40 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7335 X-Git-Tag: 7.0.7-29~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34dea01ea600fcdbae50124d5ee527eca536f11c;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7335 --- diff --git a/coders/miff.c b/coders/miff.c index a390fcb02..cfd3294dd 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1529,7 +1529,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, zip_info.next_in); } code=inflate(&zip_info,Z_SYNC_FLUSH); - if (code < 0) + if ((code < 0) || (code == Z_NEED_DICT)) { status=MagickFalse; break;