File ImageMagick-CVE-2016-8866.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.9-8/coders/rle.c
===================================================================
--- ImageMagick-6.8.9-8.orig/coders/rle.c	2016-12-12 13:25:27.285589135 +0100
+++ ImageMagick-6.8.9-8/coders/rle.c	2016-12-12 13:25:27.305589475 +0100
@@ -227,7 +227,7 @@ static Image *ReadRLEImage(const ImageIn
     bits_per_pixel=1UL*ReadBlobByte(image);
     number_colormaps=1UL*ReadBlobByte(image);
     map_length=(unsigned char) ReadBlobByte(image);
-    if (map_length >= 32)
+    if (map_length >= 22)
       ThrowReaderException(CorruptImageError,"ImproperImageHeader");
     one=1;
     map_length=one << map_length;