Skip to content

Commit

Permalink
Maven plugin: New -DsaveAll option
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanpadhye committed Apr 6, 2020
1 parent 5fd1732 commit 52800d0
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ public class FuzzGoal extends AbstractMojo {
@Parameter(property="out")
private String outputDirectory;

/**
* Whether to save ALL inputs generated during fuzzing, even
* the ones that do not have any unique code coverage.
*
* <p>This setting leads to a very large number of files being
* created in the output directory, and could potentially
* reduce the overall performance of fuzzing.</p>
*/
@Parameter(property="saveAll")
private boolean saveAll;

/**
* Weather to use libFuzzer like output instead of AFL like stats
* screen
Expand Down Expand Up @@ -220,6 +231,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}

// Configure Zest Guidance
if (saveAll) {
System.setProperty("jqf.ei.SAVE_ALL_INPUTS", "true");
}
if (libFuzzerCompatOutput != null) {
System.setProperty("jqf.ei.LIBFUZZER_COMPAT_OUTPUT", libFuzzerCompatOutput);
}
Expand Down

0 comments on commit 52800d0

Please sign in to comment.