-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/fileinfo: Add a test for avast/retdec#87.
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+106 KB
...no-certificate-found/74DB92D527624055DC928DFC7DC19DDA7FA257B2BC9F5539CEAFE2E8B4FFD6F3.dat
Binary file not shown.
Binary file added
BIN
+33.1 KB
...no-certificate-found/E7B7C4B486676CF535F9CFE1A84F991E8544E220EB0B06D33A0D808635DA3713.dat
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
tools/fileinfo/bugs/pe-crash-when-no-certificate-found/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from regression_tests import * | ||
|
||
class Test(Test): | ||
"""Checks that fileinfo does not crash when analyzing a PE sample for which | ||
we are unable to find a signer or counter-signer. | ||
https://github.com/avast-tl/retdec/issues/87 | ||
""" | ||
|
||
settings=TestSettings( | ||
tool='fileinfo', | ||
args='--verbose', | ||
input=[ | ||
'74DB92D527624055DC928DFC7DC19DDA7FA257B2BC9F5539CEAFE2E8B4FFD6F3.dat', | ||
'E7B7C4B486676CF535F9CFE1A84F991E8544E220EB0B06D33A0D808635DA3713.dat', | ||
] | ||
) | ||
|
||
def test_fileinfo_does_not_crash(self): | ||
assert self.fileinfo.succeeded |