Skip to content

Commit 04586fb

Browse files
committed
Convert 'TNULL' to '0' value
1 parent 1281150 commit 04586fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fosslight_binary/binary_analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def get_checksum_and_tlsh(bin_with_path):
6363
checksum_value = str(sha1_hash.hexdigest())
6464
try:
6565
tlsh_value = str(tlsh.hash(byte))
66+
if tlsh_value == "TNULL":
67+
tlsh_value = TLSH_CHECKSUM_NULL
6668
except:
6769
tlsh_value = TLSH_CHECKSUM_NULL
6870
f.close()

0 commit comments

Comments
 (0)