From 65f5fa657d085fd630b1a9e46ba22c13564f8158 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Wed, 7 Mar 2018 18:48:53 -0500
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1015

---
 coders/pcx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/coders/pcx.c b/coders/pcx.c
index 992aae702..41ed1b8f7 100644
--- a/coders/pcx.c
+++ b/coders/pcx.c
@@ -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))
-- 
2.40.0