]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1015
authorCristy <urban-warrior@imagemagick.org>
Wed, 7 Mar 2018 23:48:53 +0000 (18:48 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 7 Mar 2018 23:48:53 +0000 (18:48 -0500)
coders/pcx.c

index 992aae702f1a471e78ad1383680bb08661785dac..41ed1b8f735285b40c1374543fe1e3830dbf6e0a 100644 (file)
@@ -401,8 +401,6 @@ static Image *ReadPCXImage(const ImageInfo *image_info,ExceptionInfo *exception)
     pcx_packets=(size_t) image->rows*pcx_info.bytes_per_line;
     if (HeapOverflowSanityCheck(pcx_packets, (size_t) pcx_info.planes) != MagickFalse)
       ThrowPCXException(CorruptImageError,"ImproperImageHeader");
-    if ((pcx_packets/8) > GetBlobSize(image))
-      ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
     pcx_packets=(size_t) pcx_packets*pcx_info.planes;
     if ((size_t) (pcx_info.bits_per_pixel*pcx_info.planes*image->columns) >
         (pcx_packets*8U))