From: Cristy Date: Sun, 18 Feb 2018 23:42:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb4d556c30438df00f96be54dd6c8df9f09455b6;p=imagemagick ... --- diff --git a/coders/tga.c b/coders/tga.c index 6a6359798..daadbd056 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -274,8 +274,6 @@ static Image *ReadTGAImage(const ImageInfo *image_info, if (image->colors > GetBlobSize(image)) ThrowReaderException(CorruptImageError, "InsufficientImageDataInFile"); - if (image->colors > ((~0U)/sizeof(*image->colormap))) - ThrowReaderException(CorruptImageError,"ImproperImageHeader"); if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); }