]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 18 Feb 2018 23:42:17 +0000 (18:42 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 18 Feb 2018 23:42:17 +0000 (18:42 -0500)
coders/tga.c

index 6a6359798ebacc70386591afda1be19262f7c8c1..daadbd056738320b06e39cd80699b93b3d61b7df 100644 (file)
@@ -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");
         }