Skip to content

Commit

Permalink
Temp exception for incorrect VirusTotal data
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Oct 9, 2024
1 parent 736f734 commit 62479b6
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion data/upd05_group_by_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,44 @@ def canonical_file_info(file_info):
file_info_1 = canonical_file_info(file_info_1)
file_info_2 = canonical_file_info(file_info_2)

assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)
# assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)

# temp {
if file_info_1.keys() - {'signingDate'} != file_info_2.keys() - {'signingDate'}:
if file_info_1['sha256'] not in [
# edgehtml.dll
'0cb8e9df274c7edc3c4997fdd4110d6f73221f32d479af8648b54e90a294ebae',
'51fce1826feddcfedface5ef71a9396b781083c7752b4ff77c3b549aad0917f6',

# cortana.donotdisturb.dll
'60527081581ab46e79a018c4c221deecb155da644149cb33e6b84708ddad4762',

# mixedrealitycapture.pipeline.dll
'8a17d8ddc645a1caf7db31549c6e3c32ff617f6f46f1ea7cc161756800256e4b',

# eshims.dll
'f0b577caf75fa0b1011bc160a8aaf146d9fbc026b2a7a52f71b011535d8a38d5',

# msttsengine_onecore.dll
'e3ae51ddc111cd1e3fdcb3466e8645861ca00f86a69ebb5de170119e5dbd2fb7',
'bffbe22ee6a60b2937ec0000c211d01f05fb7d74cddb7b58fea1ba4c6288bd15',
'bcc6329e67897cc5d3d1c7b81cc82025d6bcac62ec38062c9778d94884f76cd7',
'97ab522b971e0a0501ae718407322e336cac561dd622ad414d3e8d8916f74db4',
'8f357e5f52bac37e6c3d352aaf3fd8048cc8680d40b932d71482dda5b1b907c5',
'7b25f42ce9a5331b3b54e4a3e6ac22f322ac43dbaca60b159d76bcd71c7941fa',
'6a01403b56ce709edd311c8da55d41a9fea642ca917f71b48476885638bc2811',
'5f0cc92cf7be3b99c630cd573430bd352ae9d6ffcd26bc5497caeb52bbf3e977',
'58e687d926b2abad8f34e115ef59f747ffa85686be3ba88815b5ba640c01d402',
'5463db6698bac760da2331e4182f3edf2d3ecec4d7d7fae6eb8ad21cfc6204c9',
'42841fa76a617cf6844bc6633cb39ded4e44618c10dc8901986797d9d8ce5d84',
'381889955b13ffa30cf1c9b76ca6761f7e3c97acc431b9b26a9aec3a6590bae1',
'2f3c5932809f0c2b9bef6deab4175cb8a559e6466e33c45517ea03c6f2b53e7a',
'20451391e40b588220b5141f0e8eeef3a78d6a6ac9ee0feba5b6ec373274f776',
]:
assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)
else:
assert file_info_1.keys() - {'signingDate', 'version', 'description'} == file_info_2.keys() - {'signingDate', 'version', 'description'}, (file_info_1, file_info_2)
# }

for key in file_info_1.keys() - {'signingStatus', 'signingDate'}:
assert file_info_1[key] == file_info_2[key], (file_info_1, file_info_2)
Expand Down

0 comments on commit 62479b6

Please sign in to comment.