From 8fc7439cefeb294756e587de6412443591583624 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Tue, 6 Jan 2004 02:35:44 +0000 Subject: [PATCH] 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 --- src/add-ons/translators/bmptranslator/BMPTranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp index 8ea92c91bb..bdac7b31ca 100644 --- a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp +++ b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp @@ -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 +