pub fn misrepresents(
head: &[u8],
policy_key: Option<&str>,
) -> Option<Executable>Expand description
Whether the content file is something that runs while its name says otherwise.
None where the bytes are not executable, and None where they are and the
extension already says so — a .exe that is a PE image is not
misrepresenting itself, whatever policy goes on to decide about it.
The extension is the folded one from crate::extension::policy_key. An
extension too exotic to fold is not on the list below and so does not
suppress the report, which is the safe direction: the content file is
executable and the name says something nobody can compare.