From 60e52517ff86a451a85cac3eaba2016e80668297 Mon Sep 17 00:00:00 2001 From: Cristy 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(-) diff --git a/coders/tiff.c b/coders/tiff.c index 090f689cc..edef96741 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1754,7 +1754,7 @@ RestoreMSCWarning quantum_type=RGBQuantum; tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( TIFFScanlineSize(tiff),(ssize_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 (tiff_pixels == (unsigned char *) NULL) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); switch (method) -- 2.40.0