From f8a8a2c97b47d250840813b4f83c1e79642fec0c Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 21 Sep 2018 20:38:40 -0400 Subject: [PATCH] ... --- coders/tga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0