summaryrefslogtreecommitdiff
path: root/coders/mat.c
diff options
context:
space:
mode:
authorCristy <urban-warrior@imagemagick.org>2018-03-16 19:42:53 -0400
committerCristy <urban-warrior@imagemagick.org>2018-03-16 19:43:11 -0400
commit652f4eae738262bb0a12bf1389c64570f265efd5 (patch)
tree0bc9a9aa28157be99a541a11617f67878d5506bd /coders/mat.c
parentb751401532fa9654063eb175fbe2fadf119cb80c (diff)
downloadImageMagick-652f4eae738262bb0a12bf1389c64570f265efd5.tar.gz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6958
Diffstat (limited to 'coders/mat.c')
-rw-r--r--coders/mat.c2
1 files changed, 2 insertions, 0 deletions
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);