squizz617 / vuddy

VUDDY: A Scalable and Accurate Vulnerable Code Clone Detector (S&P'17)
https://iotcube.net
MIT License
50 stars 23 forks source link

ValueError: #17

Open lsr912 opened 3 months ago

lsr912 commented 3 months ago

Hello, when I'm using the check_clones.py file to conduct local detection, I encountered the following error. Could you please point out where I went wrong? hash file.zip invalid literal for int() with base 10: "[{'file': 'linux-6.0/arch/alpha/boot/bootp.c', 'function id': '1', 'function length': '149', 'hash value': '44f2c0d1f5436a9cf4411bbef5abbdde'}, {'file': 'linux-6.0/arch/alpha/boot/bootp.c', 'function

seulbae-security commented 3 months ago

Hi. You seem to have created your hidx files using a newer version (4.0.1) of hmark, which is part of an extension of this work:

$ head -n 1 hashmark_0_linux-6.0.hidx
4.0.1 linux-6.0 31952 534526 21875545

Currently, check_clones.py is only compatible with the original hmark (version 3.x.x), which is available here.