Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1546
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 14, 2019
1 parent 9204adf commit f663dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coders/xwd.c
Expand Up @@ -243,6 +243,9 @@ static Image *ReadXWDImage(const ImageInfo *image_info,ExceptionInfo *exception)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if ((header.bits_per_pixel == 0) || (header.bits_per_pixel > 32))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if ((header.bitmap_bit_order != MSBFirst) &&
(header.bitmap_bit_order != LSBFirst))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (((header.bitmap_pad % 8) != 0) || (header.bitmap_pad > 32))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (header.bitmap_unit > 32)
Expand Down

0 comments on commit f663dfb

Please sign in to comment.