File GraphicsMagick-CVE-2014-9853.patch of Package GraphicsMagick.6323

Index: GraphicsMagick-1.3.21/coders/rle.c
===================================================================
--- GraphicsMagick-1.3.21.orig/coders/rle.c	2016-08-05 10:11:33.206655571 +0200
+++ GraphicsMagick-1.3.21/coders/rle.c	2016-08-05 10:12:01.119100750 +0200
@@ -264,7 +264,7 @@ static Image *ReadRLEImage(const ImageIn
         /*
           Read image colormaps.
         */
-        colormap=MagickAllocateArray(unsigned char *,number_colormaps,
+        colormap=MagickAllocateArray(unsigned char *,3*number_colormaps,
                                      map_length);
         if (colormap == (unsigned char *) NULL)
           ThrowReaderException(ResourceLimitError,MemoryAllocationFailed,
openSUSE Build Service is sponsored by