File ImageMagick-CVE-2017-17914.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.8-1/coders/png.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/png.c	2018-01-14 21:25:08.288848498 +0100
+++ ImageMagick-6.8.8-1/coders/png.c	2018-01-14 22:16:58.976278691 +0100
@@ -2347,10 +2347,9 @@ static Image *ReadOnePNGImage(MngInfo *m
       if (image != (Image *) NULL)
         {
           InheritException(exception,&image->exception);
-          image->columns=0;
+          image=DestroyImage(image);
         }
-
-      return(GetFirstImageInList(image));
+      return (image);
     }
 
   /* {  For navigation to end of SETJMP-protected block.  Within this