]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/500
authorCristy <urban-warrior@imagemagick.org>
Tue, 23 May 2017 23:06:22 +0000 (19:06 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 23 May 2017 23:06:22 +0000 (19:06 -0400)
ChangeLog
coders/miff.c

index 69bd1379ae31b1e6cbba9b8879fe42ce1030e2db..18283f85763570d9eb1fa9af3ea885c875b88144 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2017-05-23  7.0.5-8 Cristy  <quetzlzacatenango@image...>
   * 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  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.5-6, GIT revision 20078:7ce2d38:20170519.
index adf1a437b35b5a0c10d3359079a846d46a77e6bb..7a0cdc7f24f98189351e23fe002dfa45a7bd44b1 100644 (file)
@@ -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;