File ImageMagick-CVE-2016-7517.patch of Package ImageMagick.5842
Index: ImageMagick-6.8.9-8/coders/pict.c
===================================================================
--- ImageMagick-6.8.9-8.orig/coders/pict.c 2016-10-05 11:56:23.210300665 +0200
+++ ImageMagick-6.8.9-8/coders/pict.c 2016-10-05 11:58:33.504340828 +0200
@@ -1980,7 +1980,7 @@ static MagickBooleanType WritePICTImage(
(GetPixelAlpha(p)));
p++;
}
- count+=EncodeImage(image,scanline,bytes_per_line & 0x7FFF,
+ count+=EncodeImage(image,scanline,bytes_per_line,
packed_scanline);
if (image->previous == (Image *) NULL)
{