From fd00146bfc98f9d72cadbbc5f5e4fde5ba0de725 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 25 Mar 2018 08:54:30 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7111 --- coders/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/tiff.c b/coders/tiff.c index a90680112..72ea08313 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1765,7 +1765,7 @@ RestoreMSCWarning tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( TIFFScanlineSize(tiff),MagickMax((ssize_t) image->columns* samples_per_pixel*pow(2.0,ceil(log(bits_per_sample)/log(2.0))), - rows_per_strip)*sizeof(uint32))); + image->columns*rows_per_strip)*sizeof(uint32))); if (tiff_pixels == (unsigned char *) NULL) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); switch (method) -- 2.40.0