From: Cristy Date: Wed, 14 Feb 2018 21:47:41 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6350 X-Git-Tag: 7.0.7-23~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84415f7ef99f6b0b61382372b432d331e04a8e2a;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6350 --- diff --git a/coders/pcx.c b/coders/pcx.c index 9c7e8c45a..992aae702 100644 --- a/coders/pcx.c +++ b/coders/pcx.c @@ -358,6 +358,7 @@ static Image *ReadPCXImage(const ImageInfo *image_info,ExceptionInfo *exception) if (status == MagickFalse) ThrowPCXException(exception->severity,exception->reason); (void) SetImageBackgroundColor(image,exception); + (void) memset(pcx_colormap,0,sizeof(pcx_colormap)); count=ReadBlob(image,3*image->colors,pcx_colormap); if (count != (ssize_t) (3*image->colors)) ThrowPCXException(CorruptImageError,"ImproperImageHeader");