File ImageMagick-CVE-2017-14607.patch of Package ImageMagick.8768
From 60e52517ff86a451a85cac3eaba2016e80668297 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Tue, 19 Sep 2017 06:50:50 -0400
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/765
---
coders/tiff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ImageMagick-6.8.8-1/coders/tiff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/tiff.c 2017-11-28 11:19:02.745036503 +0100
+++ ImageMagick-6.8.8-1/coders/tiff.c 2017-11-28 11:19:40.849685012 +0100
@@ -1345,7 +1345,7 @@ RestoreMSCWarning
quantum_type=RGBQuantum;
pixels=(unsigned char *) AcquireMagickMemory(MagickMax(
TIFFScanlineSize(tiff),(size_t) (image->columns*samples_per_pixel*
- pow(2.0,ceil(log(bits_per_sample)/log(2.0))))));
+ pow(2.0,ceil(log(bits_per_sample)/log(2.0)))*sizeof(uint32))));
if (pixels == (unsigned char *) NULL)
{
TIFFClose(tiff);