]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18305
authorCristy <urban-warrior@imagemagick.org>
Thu, 17 Oct 2019 12:52:12 +0000 (08:52 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 17 Oct 2019 12:52:12 +0000 (08:52 -0400)
coders/tiff.c

index dd0766df9374eb0b68db7ff38f7d69c289d80ba9..0c0934c28d3b97b21b5d8a827527b622163b594b 100644 (file)
@@ -1545,8 +1545,6 @@ RestoreMSCWarning
     option=GetImageOption(image_info,"tiff:exif-properties");
     if (IsStringFalse(option) == MagickFalse) /* enabled by default */
       TIFFGetEXIFProperties(tiff,image,exception);
-    (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLESPERPIXEL,
-      &samples_per_pixel);
     if ((TIFFGetFieldDefaulted(tiff,TIFFTAG_XRESOLUTION,&x_resolution) == 1) &&
         (TIFFGetFieldDefaulted(tiff,TIFFTAG_YRESOLUTION,&y_resolution) == 1))
       {