From: Cristy Date: Sat, 22 Sep 2018 00:38:40 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-12~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8a8a2c97b47d250840813b4f83c1e79642fec0c;p=imagemagick ... --- diff --git a/coders/tga.c b/coders/tga.c index d17f46f45..ad6a583ff 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -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)