From 0ab9f66dd97145237facc7d7d8c0d3b6c82cb850 Mon Sep 17 00:00:00 2001 From: Robert Czechowski Date: Thu, 25 May 2023 10:32:09 +0200 Subject: [PATCH] core: log coverage input directories on startup --- packages/core/core.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/core.ts b/packages/core/core.ts index 12ce7a9ec..64f1b4f20 100644 --- a/packages/core/core.ts +++ b/packages/core/core.ts @@ -155,11 +155,20 @@ export async function startFuzzing(options: Options) { ); } +function logInfoAboutFuzzerOptions(fuzzerOptions: string[]) { + fuzzerOptions.slice(1).forEach((element) => { + if (element.length > 0 && element[0] != "-") { + console.log("INFO: seed corpus: input file:", element); + } + }); +} + export async function startFuzzingNoInit( fuzzFn: fuzzer.FuzzTarget, options: Options ) { const fuzzerOptions = buildFuzzerOptions(options); + logInfoAboutFuzzerOptions(fuzzerOptions); const fuzzerFn = options.sync ? Fuzzer.startFuzzing : Fuzzer.startFuzzingAsync;