From 822698ae825b168b6b763d65e536083da8b4ea97 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 29 Mar 2018 20:47:50 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7118 --- coders/tiff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 36810ec34..004af0626 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1720,8 +1720,7 @@ RestoreMSCWarning } } method=ReadGenericMethod; - rows_per_strip=image->columns*image->rows; - if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1) + if (TIFFGetFieldDefaulted(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1) { char value[MagickPathExtent]; -- 2.40.0