]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7315
authorCristy <urban-warrior@imagemagick.org>
Mon, 2 Apr 2018 23:09:49 +0000 (19:09 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 2 Apr 2018 23:09:49 +0000 (19:09 -0400)
coders/tiff.c

index 5799cbc6957fa7d929de44e0674137b59a1f66a9..9d15ec5e205c7e2fb1350f6fdda420aba14b7465 100644 (file)
@@ -49,6 +49,7 @@
 #include "MagickCore/blob.h"
 #include "MagickCore/blob-private.h"
 #include "MagickCore/cache.h"
+#include "MagickCore/channel.h"
 #include "MagickCore/color.h"
 #include "MagickCore/color-private.h"
 #include "MagickCore/colormap.h"
@@ -1718,6 +1719,8 @@ RestoreMSCWarning
                   exception);
           }
       }
+    if (image->alpha_trait != UndefinedPixelTrait)
+      (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
     method=ReadGenericMethod;
     rows_per_strip=(uint32) image->rows;
     if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1)