File ImageMagick-CVE-2016-10063.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.8-1/coders/tiff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/tiff.c	2017-01-23 08:47:30.527568250 +0100
+++ ImageMagick-6.8.8-1/coders/tiff.c	2017-01-23 10:40:00.815640630 +0100
@@ -1221,6 +1221,12 @@ RestoreMSCWarning
             break;
         goto next_tiff_frame;
       }
+    status=SetImageExtent(image,image->columns,image->rows);
+    if (status == MagickFalse)
+      {
+        InheritException(exception,&image->exception);
+        return(DestroyImageList(image));
+      }
      /*
        Allocate memory for the image and pixel buffer.
      */