File GraphicsMagick-CVE-2016-8866.patch of Package GraphicsMagick.6323
Index: GraphicsMagick-1.2.5/coders/rle.c
===================================================================
--- GraphicsMagick-1.2.5.orig/coders/rle.c 2016-12-12 13:28:32.900747123 +0100
+++ GraphicsMagick-1.2.5/coders/rle.c 2016-12-12 13:28:47.444994569 +0100
@@ -213,7 +213,7 @@ static Image *ReadRLEImage(const ImageIn
bits_per_pixel=ReadBlobByte(image);
number_colormaps=ReadBlobByte(image);
map_length=(unsigned char) ReadBlobByte(image);
- if (map_length >= 32)
+ if (map_length >= 22)
ThrowReaderException(CorruptImageError,ImproperImageHeader,image);
one=1;
map_length=one << map_length;