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:
parent
1ff6e7a80f
commit
362940cf89
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue