Skip to content

Running Jazzer just over input corpus #925

Answered by centic9
Qffsky asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if this is what you are looking for, but I do normal fuzzing runs in some projects which builds up the usual directory with corpus-files.

Then a script coverageReport.sh runs jazzer with some options to execute these corpus files while JaCoCo is injected and thus collects coverage information. A 2nd step then produces the JaCoCo report.

See https://github.com/centic9/demo-fuzz/blob/main/coverageReport.sh for a demo project and https://github.com/centic9/compress-fuzz for a real-life example.

If you provide a valid path to the actual sources of the fuzzed code via --sourcefiles at the end of the script, the JaCoCo report is produced properly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Qffsky
Comment options

Answer selected by Qffsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants