]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 21 Dec 2014 21:04:50 +0000 (21:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 21 Dec 2014 21:04:50 +0000 (21:04 +0000)
coders/rle.c

index 947983834cdfb8a3596a20eeb827b51259e06229..7c397c7eec6f69e2659e4009a6813fe431fda691 100644 (file)
@@ -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;