From 58075e4e86d9b9d702b296ba798d5b3d51c7a0ac Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 12 Dec 2024 08:48:52 -0500 Subject: [PATCH] revert invalid BMP check --- coders/bmp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/coders/bmp.c b/coders/bmp.c index 838631015..d73d7123a 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -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) {