From: cristy Date: Sun, 21 Dec 2014 21:04:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddec28893163d02eba4ab4fe06da255e02f44670;p=imagemagick --- diff --git a/coders/rle.c b/coders/rle.c index 947983834..7c397c7ee 100644 --- a/coders/rle.c +++ b/coders/rle.c @@ -265,7 +265,7 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) Read image colormaps. */ colormap=(unsigned char *) AcquireQuantumMemory(number_colormaps, - map_length*sizeof(*colormap)); + 3*map_length*sizeof(*colormap)); if (colormap == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); p=colormap;