Changed BMPTranslator to be less picky about the msheader.imagesize value. It now accepts the value if it is not less than the minimum possible imagesize.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5923 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2004-01-06 02:35:44 +00:00
parent d2c9e14c64
commit 8fc7439cef

View File

@ -569,7 +569,7 @@ identify_bmp_header(BPositionIO *inSource, translator_info *outInfo,
if (msheader.compression == BMP_NO_COMPRESS) {
uint32 imagesize = get_rowbytes(msheader.width,
msheader.bitsperpixel) * msheader.height;
if (msheader.imagesize && msheader.imagesize !=
if (msheader.imagesize && msheader.imagesize <
imagesize)
return B_NO_TRANSLATOR;
if (fileHeader.fileSize < fileHeader.dataOffset +