Skip to content

Commit

Permalink
test-magic: Update expected strings (VirusTotal#1853)
Browse files Browse the repository at this point in the history
As of file 5.44, some PE-related strings and MIME types have been
updated, causing the test to fail. This commit extends the fix in
0939464 to cover more cases.

closes VirusTotal#1853

See [Gentoo bug#889182](https://bugs.gentoo.org/889182)
  • Loading branch information
hamarituc committed Jan 2, 2023
1 parent b5a0cfd commit 1b5d787
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test-magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ int main(int argc, char** argv)
assert_true_rule_blob(
"import \"magic\" rule test { condition: \
( magic.type() contains \"MS-DOS executable\" or \
magic.type() contains \"PE32+ executable\" ) and \
magic.type() contains \"PE32+ executable\" or \
magic.type() contains \"PE32 executable\") and \
( magic.mime_type() == \"application/x-dosexec\" or \
magic.mime_type() == \"application/vnd.microsoft.portable-executable\" ) }",
PE32_FILE);
Expand Down

0 comments on commit 1b5d787

Please sign in to comment.