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:
@@ -569,7 +569,7 @@ identify_bmp_header(BPositionIO *inSource, translator_info *outInfo,
|
|||||||
if (msheader.compression == BMP_NO_COMPRESS) {
|
if (msheader.compression == BMP_NO_COMPRESS) {
|
||||||
uint32 imagesize = get_rowbytes(msheader.width,
|
uint32 imagesize = get_rowbytes(msheader.width,
|
||||||
msheader.bitsperpixel) * msheader.height;
|
msheader.bitsperpixel) * msheader.height;
|
||||||
if (msheader.imagesize && msheader.imagesize !=
|
if (msheader.imagesize && msheader.imagesize <
|
||||||
imagesize)
|
imagesize)
|
||||||
return B_NO_TRANSLATOR;
|
return B_NO_TRANSLATOR;
|
||||||
if (fileHeader.fileSize < fileHeader.dataOffset +
|
if (fileHeader.fileSize < fileHeader.dataOffset +
|
||||||
|
|||||||
Reference in New Issue
Block a user