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

Index: ImageMagick-6.8.8-1/coders/art.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/art.c	2013-12-01 15:47:50.000000000 +0100
+++ ImageMagick-6.8.8-1/coders/art.c	2017-05-30 12:01:43.306881897 +0200
@@ -175,7 +175,10 @@ static Image *ReadARTImage(const ImageIn
       break;
     count=ReadBlob(image,length,pixels);
     if (count != (ssize_t) length)
-      ThrowReaderException(CorruptImageError,"UnableToReadImageData");
+      {
+        quantum_info=DestroyQuantumInfo(quantum_info);
+        ThrowReaderException(CorruptImageError,"UnableToReadImageData");
+      }
     (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info,
       quantum_type,pixels,exception);
     count=ReadBlob(image,(size_t) (-(ssize_t) length) & 0x01,pixels);