Skip to content

Commit

Permalink
tools/fileinfo: Add a test for avast/retdec#87.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rvac committed Mar 17, 2018
1 parent c81f26e commit ce189d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions tools/fileinfo/bugs/pe-crash-when-no-certificate-found/test.py
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

0 comments on commit ce189d6

Please sign in to comment.