Skip to content

Commit

Permalink
revert invalid BMP check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 12, 2024
1 parent 1b21aee commit 58075e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,6 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
bmp_info.blue_mask=ReadBlobLSBLong(image);
if (bmp_info.compression == BI_ALPHABITFIELDS)
bmp_info.alpha_mask=ReadBlobLSBLong(image);
if ((bmp_info.bits_per_pixel != 16) &&
(bmp_info.bits_per_pixel != 32))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
}
if (bmp_info.size > 40)
{
Expand Down

0 comments on commit 58075e4

Please sign in to comment.