From: Cristy Date: Tue, 23 May 2017 23:06:22 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/500 X-Git-Tag: 7.0.5-8~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d95b4c24a964114e2b1ae85c2b36769251ed11d;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/500 --- 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;