Skip to content

Commit

Permalink
Merge pull request #2 from avast-tl/test-for-fix-fileinfo-crashing-wh…
Browse files Browse the repository at this point in the history
…en-verifying-signatures

Add a test for avast/retdec#87
  • Loading branch information
metthal authored Mar 17, 2018
2 parents 97dbc34 + ce189d6 commit 2a805e4
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 2a805e4

Please sign in to comment.