-
I want to make a coverage report(
The problem is with the second step, as functionality of running input corpus is supported only for junit-integration(when JAZZER_FUZZ variable is not set). Is there something i'm missing or is there is no other way around this? And if so, is there any advice on parts of source code that i should change to implement this feature? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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 |
Beta Was this translation helpful? Give feedback.
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.