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

How to get the instrumented source code #44

Closed
DanielGuoVT opened this issue Mar 27, 2020 · 1 comment
Closed

How to get the instrumented source code #44

DanielGuoVT opened this issue Mar 27, 2020 · 1 comment

Comments

@DanielGuoVT
Copy link

Hi there,
I am using LAVA to inject bugs into some benchmarks.
After LAVA finishes, I can find the buggy binary and some inputs that can trigger seg-faults in the binary.
My question is: is there a way to get the instrumented source code of the buggy binary? I tried to grep "lava_get" but find nothing in the target_injection directory.

Thanks,
Daniel.

@AndrewFasano
Copy link
Member

Hi Daniel,

LAVA creates a local git repository in the directory with the buggy source. Each time LAVA injects bugs, they're added to a new branch. The master branch will contain the bug-free code. So if you do a git branch -a in your source directory, you should see a list of branches. If you check out another one, you'll have the buggy version of the code.

Hope that helps!

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