]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 22 Sep 2018 00:38:40 +0000 (20:38 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 22 Sep 2018 00:38:40 +0000 (20:38 -0400)
coders/tga.c

index d17f46f4564b5598a9c04c0912775d66f8b2cdd4..ad6a583ffdd4d6ee9aee083944cc50fc8e98ee29 100644 (file)
@@ -270,7 +270,7 @@ static Image *ReadTGAImage(const ImageInfo *image_info,ExceptionInfo *exception)
 
           one=1;
           image->colors=one << tga_info.bits_per_pixel;
-          if (image->colors > GetBlobSize(image))
+          if ((MagickSizeType) image->colors > GetBlobSize(image))
             ThrowReaderException(CorruptImageError,
               "InsufficientImageDataInFile");
           if (AcquireImageColormap(image,image->colors,exception) == MagickFalse)