removed broken MSI support 0uo

This commit is contained in:
Lynne Megido 2021-09-29 23:40:57 +10:00
parent f1982f670e
commit eb3e650361
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
3 changed files with 8 additions and 7 deletions

View file

@ -5,8 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased ## Unreleased
### Added
- MSI detection to [`infer`] backend ---
## v0.3.7 - 2021-09-25 ## v0.3.7 - 2021-09-25
### Added ### Added
- `-j`/`--jobs` flag for specifying the number of threads fif should use for scanning files - `-j`/`--jobs` flag for specifying the number of threads fif should use for scanning files

2
Cargo.lock generated
View file

@ -1,7 +1,5 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3
[[package]] [[package]]
name = "arrayvec" name = "arrayvec"
version = "0.5.2" version = "0.5.2"

View file

@ -51,9 +51,11 @@ cfg_if! {
buf.starts_with(b"\x46\x4f\x52\x4d\x41\x49\x46\x46") buf.starts_with(b"\x46\x4f\x52\x4d\x41\x49\x46\x46")
}); });
info.add("application/x-msi", "msi", |buf| { // info.add("application/x-msi", "msi", |buf| {
buf.starts_with(b"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1") // TODO: find a way to detect MSI files properly - this just detects those weird windows OLE files and therefore
}); // also picks up on .doc files
// buf.starts_with(b"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1")
// });
info.add("image/svg+xml", "svg", |buf| { info.add("image/svg+xml", "svg", |buf| {
// before doing the moderately expensive SVG check, we should make sure that the input is actually SGML-ish, // before doing the moderately expensive SVG check, we should make sure that the input is actually SGML-ish,