Skip to content

Commit

Permalink
Merge pull request #138 from fosslight/develop
Browse files Browse the repository at this point in the history
Convert 'TNULL' to '0' value
  • Loading branch information
bjk7119 authored Jan 3, 2025
2 parents 1281150 + 1e31ede commit ab8a44e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fosslight_binary/binary_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def get_checksum_and_tlsh(bin_with_path):
checksum_value = str(sha1_hash.hexdigest())
try:
tlsh_value = str(tlsh.hash(byte))
if tlsh_value == "TNULL" or (not tlsh_value):
tlsh_value = TLSH_CHECKSUM_NULL
except:
tlsh_value = TLSH_CHECKSUM_NULL
f.close()
Expand Down

0 comments on commit ab8a44e

Please sign in to comment.