From b9d4bd329845f610badd79a191df1d484e29a6d9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 3 Apr 2018 14:24:33 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7335 --- coders/miff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/miff.c b/coders/miff.c index cfd3294dd..d6531aa22 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) || (code == Z_NEED_DICT)) + if ((code != Z_OK) && (code != Z_STREAM_END)) { status=MagickFalse; break; -- 2.40.0