File ImageMagick-CVE-2017-5510.patch of Package ImageMagick.4412

Index: ImageMagick-6.8.8-1/coders/psd.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/psd.c	2017-01-23 13:39:03.247144388 +0100
+++ ImageMagick-6.8.8-1/coders/psd.c	2017-01-23 13:45:31.781351265 +0100
@@ -2118,7 +2118,7 @@ static void WriteOneChannel(const PSDInf
     ? MagickTrue : MagickFalse;
   packet_size=next_image->depth > 8UL ? 2UL : 1UL;
   (void) packet_size;
-  quantum_info=AcquireQuantumInfo(image_info,image);
+  quantum_info=AcquireQuantumInfo(image_info,next_image);
   pixels=GetQuantumPixels(quantum_info);
   for (y=0; y < (ssize_t) next_image->rows; y++)
   {
openSUSE Build Service is sponsored by