]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/293
authorCristy <urban-warrior@imagemagick.org>
Mon, 31 Oct 2016 00:30:48 +0000 (20:30 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 31 Oct 2016 00:30:48 +0000 (20:30 -0400)
coders/xpm.c

index 7d9021c376e7225b7e0799f4dd27af92c3c27726..088303da80617fe03d2f8f983a6656e5312de994 100644 (file)
@@ -336,7 +336,7 @@ static Image *ReadXPMImage(const ImageInfo *image_info,ExceptionInfo *exception)
     if (count == 4)
       break;
   }
-  if ((count != 4) || (width == 0) || (width > 2) ||
+  if ((count != 4) || (width == 0) || (width > 3) ||
       (image->columns == 0) || (image->rows == 0) ||
       (image->colors == 0) || (image->colors > MaxColormapSize))
     {