From 34dea01ea600fcdbae50124d5ee527eca536f11c Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 3 Apr 2018 14:22:40 -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 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; -- 2.50.1