]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7118
authorCristy <urban-warrior@imagemagick.org>
Fri, 30 Mar 2018 00:47:50 +0000 (20:47 -0400)
committerCristy <urban-warrior@imagemagick.org>
Fri, 30 Mar 2018 00:47:50 +0000 (20:47 -0400)
coders/tiff.c

index 36810ec34b0ec2112f14b0a627eac25c3eebf459..004af06265a8bb2238134e997a537238085c2b2f 100644 (file)
@@ -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];