squizz617 / vuddy

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

No functions being processed #15

Closed anon767 closed 1 year ago

anon767 commented 1 year ago

Hey I tried running hmark on my projects and the testcode directory but ctags seems to be unable to parse any file. I always get more or less following result:

[+] Hash index successfully generated.
[+] Saving hash index to file... (Done)

[+] Elapsed time: 0.07 sec.
Program statistics:
 - 4 files;
 - 0 functions;
 - 0 lines of code.

The command Im using is for instance:

./hmark_4.0.1_linux_x64 -c testcode/ OFF

Ctags output is mostly a non-zero error code and a parsing error:

Parser Error: Command '"/tmp/_MEIbtoICk/ctags" -f - --kinds-C=* --fields=neKSt "testcode/configs.c"' returned non-zero exit status 127.

I tried the prebuilt binaries for linux and Mac OS X. And for Mac OS X I also tried bulding ctags from their new repository.

Am I missing something here?

Thanks in advance and kind regards, Tom

anon767 commented 1 year ago

Solved the issue by using the python code directly