Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About counterfactual-vulnerability-detection please #33

Open
hanqihong opened this issue Jun 13, 2024 · 1 comment
Open

About counterfactual-vulnerability-detection please #33

hanqihong opened this issue Jun 13, 2024 · 1 comment

Comments

@hanqihong
Copy link

As written in readme, running commands such as Python code_graph_gen.py 1 will generate before/177736. c, before/177736. nodes.json, and before/177736. edges.json files. Why didn't I generate before/177736. nodes.json, and only. c files for and before/177736. edges.json?

@Zhaoyang-Chu
Copy link
Collaborator

Sorry for the delayed response.

Please make sure you have the appropriate version of Joern installed first. Joern frequently updates, and newer versions might have changes in API or configuration parameters, leading to unpredictable outputs. I recommend installing Joern version 1.1.260 with the following commands:

wget https://github.com/joernio/joern/releases/download/v1.1.260/joern-install.sh
chmod +x ./joern-install.sh
printf 'Y\n/bin/joern\ny\n/usr/local/bin\n\n'  | sudo ./joern-install.sh --interactive

Additionally, if you encounter issues with generating the code graph, you might find this link helpful: https://drive.google.com/drive/folders/12iUTp4YFRG9qgAtqOV0hXRDpMZmvDp_O?usp=sharing. It contains key data for reproducing the results, including pre-generated code graph data in .pt format.

If you have further questions, please submit an issue in my repo here: https://github.com/Zhaoyang-Chu/counterfactual-vulnerability-detection/issues to ensure I can see it promptly. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants