Skip to content

Commit

Permalink
FuzzTargetRunner: log coverage input directories on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
zgtm committed Jun 1, 2023
1 parent d8c7659 commit 8c46593
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@ public static int startLibFuzzer(List<String> args) {
// https://github.com/llvm/llvm-project/blob/da3623de2411dd931913eb510e94fe846c929c24/compiler-rt/lib/fuzzer/FuzzerFlags.def#L19
args.add("-len_control=100");
}

for (String arg: args.subList(1, args.size())) {
if (arg.length() > 0 && arg.charAt(0) != '-') {
System.out.print("INFO: seed corpus: input file: ");
System.out.println(arg);
}
}

SignalHandler.initialize();
return startLibFuzzer(
args.stream().map(str -> str.getBytes(StandardCharsets.UTF_8)).toArray(byte[][] ::new));
Expand Down

0 comments on commit 8c46593

Please sign in to comment.