From: Cristy Date: Thu, 22 Mar 2018 23:12:16 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7057 X-Git-Tag: 7.0.7-28~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fa4e83f367a1471afa2cb1013a438ba11c67cf4;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7057 --- diff --git a/coders/rle.c b/coders/rle.c index 03258073b..5da2136e6 100644 --- a/coders/rle.c +++ b/coders/rle.c @@ -287,6 +287,8 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) 3*map_length*sizeof(*colormap)); if (colormap == (unsigned char *) NULL) ThrowRLEException(ResourceLimitError,"MemoryAllocationFailed"); + (void) memset(colormap,0,number_colormaps*3*map_length* + sizeof(*colormap)); p=colormap; for (i=0; i < (ssize_t) number_colormaps; i++) for (x=0; x < (ssize_t) map_length; x++)