]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6350
authorCristy <urban-warrior@imagemagick.org>
Wed, 14 Feb 2018 21:47:41 +0000 (16:47 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 14 Feb 2018 21:47:41 +0000 (16:47 -0500)
coders/pcx.c

index 9c7e8c45a5166f4bd65249ba7a13bc84ac5cb038..992aae702f1a471e78ad1383680bb08661785dac 100644 (file)
@@ -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");