From: Cristy Date: Wed, 4 Jul 2018 18:12:38 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1193 X-Git-Tag: 7.0.8-5~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=957b6397b958a5881005df27eb97319b3175a3c9;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1193 --- diff --git a/coders/pcd.c b/coders/pcd.c index 42941a937..4bd8ace49 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -283,6 +283,9 @@ static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, } default: { + for (i=0; i < (image->columns > 1536 ? 3 : 1); i++) + pcd_table[i]=(PCDTable *) RelinquishMagickMemory(pcd_table[i]); + buffer=(unsigned char *) RelinquishMagickMemory(buffer); ThrowBinaryException(CorruptImageError,"CorruptImage", image->filename); }