Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for TypeLib ID parent check #96

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
11 changes: 11 additions & 0 deletions tools/fileinfo/features/dot-net-parser/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,14 @@ class TestEncTables(Test):
def test_name_is_made_of_printable_characters(self):
assert self.fileinfo.succeeded
self.assertEqual(self.fileinfo.output['dotnetInfo']['classes'][1]['name'], 'CompressShell')

class TestTypelib(Test):
settings=TestSettings(
tool='fileinfo',
args='--json --verbose',
input='756684f4017ba7e931a26724ae61606b16b5f8cc84ed38a260a34e50c5016f59'
)

def test_typelib_random_guid_detection_issue_966(self):
assert self.fileinfo.succeeded
assert 'typeLibId' not in self.fileinfo.output['dotnetInfo']