From 652f4eae738262bb0a12bf1389c64570f265efd5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 16 Mar 2018 19:42:53 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6958 --- coders/mat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/mat.c b/coders/mat.c index 808833119..1ff53e5ea 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1349,6 +1349,8 @@ done_reading: } } } + if (EOFBlob(image) != MagickFalse) + break; /* Allocate next image structure. */ AcquireNextImage(image_info,image,exception); -- 2.40.0