BMP sniffing: check more bytes

* Check that the two high-order byte of the DIB header size are 0 (the
largest known size according to wikipedia is 124 bytes).
* This avoids identifying any text file that starts with "BM" as a BMP
file.

Fixes #10912.
This commit is contained in:
Adrien Destugues 2014-06-16 13:15:47 +02:00
parent 1ff6e7a80f
commit 362940cf89
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image/bmp";
resource(2, "META:SNIFF_RULE") "0.50 (\"BM\")";
resource(2, "META:SNIFF_RULE") "0.50 (\"BM\") [16](\"\\000\\000\")";
resource(3, "META:S:DESC") #'MSDC' "BMP image";