From: Cristy Date: Fri, 30 Mar 2018 00:47:50 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7118 X-Git-Tag: 7.0.7-29~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=822698ae825b168b6b763d65e536083da8b4ea97;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7118 --- 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];