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

Index: ImageMagick-6.8.8-1/magick/quantum-import.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/quantum-import.c	2013-12-01 15:47:50.000000000 +0100
+++ ImageMagick-6.8.8-1/magick/quantum-import.c	2017-10-06 13:14:21.803999349 +0200
@@ -1169,7 +1169,7 @@ static void ImportCbYCrYQuantum(const Im
 
           n=0;
           quantum=0;
-          for (x=0; x < (ssize_t) number_pixels; x+=2)
+          for (x=0; x < (ssize_t) number_pixels; x+=4)
           {
             for (i=0; i < 4; i++)
             {
Index: ImageMagick-6.8.8-1/magick/quantum.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/quantum.c	2017-10-06 13:14:21.619996122 +0200
+++ ImageMagick-6.8.8-1/magick/quantum.c	2017-10-06 13:14:21.803999349 +0200
@@ -327,6 +327,9 @@ MagickExport size_t GetQuantumExtent(con
     case BGRAQuantum: packet_size=4; break;
     case CMYKQuantum: packet_size=4; break;
     case CMYKAQuantum: packet_size=5; break;
+    case CbYCrAQuantum: packet_size=4; break;
+    case CbYCrQuantum: packet_size=3; break;
+    case CbYCrYQuantum: packet_size=4; break;
     default: break;
   }
   if (quantum_info->pack == MagickFalse)