From 5d95b4c24a964114e2b1ae85c2b36769251ed11d Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 23 May 2017 19:06:22 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/500 --- ChangeLog | 2 ++ coders/miff.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 69bd1379a..18283f857 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2017-05-23 7.0.5-8 Cristy * Improper allocation of memory for IM instances without threads (reference https://github.com/ImageMagick/ImageMagick/issues/497). + * Delete corrupt image from list (reference + https://github.com/ImageMagick/ImageMagick/issues/500). 2017-05-19 7.0.5-7 Cristy * Release ImageMagick version 7.0.5-6, GIT revision 20078:7ce2d38:20170519. diff --git a/coders/miff.c b/coders/miff.c index adf1a437b..7a0cdc7f2 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1088,6 +1088,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, { if (image->previous == (Image *) NULL) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + DeleteImageFromList(&image); (void) ThrowMagickException(exception,GetMagickModule(), CorruptImageError,"ImproperImageHeader","`%s'",image->filename); break; -- 2.40.0