CGCL-codes / VulCNN

62 stars 15 forks source link

When joern_graph_gen.py is run, joern reports "Error: Unknown option --out Error: Unknown argument './data/sard/bins/Vul/CVE_raw_000119535_CWE78_OS_Command_Injection__char_file_system_09_bad.bin' Try --help for more information. Failure: Could not parse command line options" #8

Open AdizeroYU opened 1 year ago

AdizeroYU commented 1 year ago

运行joern_graph_gen.py时,joern报错称 "Error: Unknown option --out Error: Unknown argument './data/sard/bins/Vul/CVE_raw_000119535_CWE78_OS_Command_Injection__char_file_system_09_bad.bin' Try --help for more information. Failure: Could not parse command line options"

AdizeroYU commented 1 year ago

This problem has been solved:check the version of your joern and different versions of joern have different parameter formats. I changed os.system('sh joern-parse $file --language c --out $out') to os.system('sh joern-parse $file --language c --output $out') ,then it works.

Ricardo1998-Xu commented 5 months ago

May I ask if this needs to be modified as well? os.system('sh joern-export $bin'+ " --repr " + "pdg" + ' --out $out')