From 2fa4e83f367a1471afa2cb1013a438ba11c67cf4 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 22 Mar 2018 19:12:16 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7057 --- coders/rle.c | 2 ++ 1 file changed, 2 insertions(+) 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++) -- 2.40.0