epicosy / devign

Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks
MIT License
199 stars 70 forks source link

Cannot parse using the latest joern #14

Closed faysalhossain2007 closed 2 years ago

faysalhossain2007 commented 2 years ago

Can you tell us which version of the Joern you used to generate the CPG?

Currently I am getting error in the following line:

    joern_parse_call = subprocess.run(["./" + joern_path + "joern-parse", input_path, "--out", output_path + out_file],
                                      stdout=subprocess.PIPE, text=True, check=True)

That's because in the latest Joern they use the following code to export cpg to a directory:

joern-parse /src/directory
joern-export --repr pdg --out outdir

I tried older Joern version. But I faced other problems there: https://github.com/epicosy/devign/issues/3#issuecomment-1057844454

Vinothini-G commented 2 years ago

Instead of --out, you can try --output. Hope it helps!

brian5121 commented 2 years ago

Hello, I am getting the same error after replacing --out with --output. Any suggestions?

faysalhossain2007 commented 2 years ago

https://github.com/epicosy/devign/issues/17#issue-1291889668