From e7400ef1c61e603261967759a4ff489701183d38 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 25 Mar 2018 20:03:54 -0400 Subject: [PATCH] ... --- coders/tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 223fe7168..72ea08313 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1764,8 +1764,8 @@ RestoreMSCWarning ThrowTIFFException(CorruptImageError,"InsufficientImageDataInFile"); tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( TIFFScanlineSize(tiff),MagickMax((ssize_t) image->columns* - MagickMax(samples_per_pixel,3)*pow(2.0,ceil(log(bits_per_sample)/ - log(2.0))),image->columns*rows_per_strip)*sizeof(uint32))); + samples_per_pixel*pow(2.0,ceil(log(bits_per_sample)/log(2.0))), + image->columns*rows_per_strip)*sizeof(uint32))); if (tiff_pixels == (unsigned char *) NULL) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); switch (method) -- 2.40.0