Skip to content

Commit 9f8c831

Browse files
committed
fuzz: log corpus size per target and reduce verbose output
Log the number of corpus files before each fuzz target runs, making it easier to assess whether the 30 second time limit is sufficient to replay the full corpus. Also remove the -v flag from honggfuzz to cut down on per-thread status line noise in CI logs. AI tools were used in preparing this commit.
1 parent 43066b7 commit 9f8c831

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

fuzz/ci-fuzz.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ cargo --color always hfuzz build -j8
3333
for TARGET in src/bin/*.rs; do
3434
FILENAME=$(basename $TARGET)
3535
FILE="${FILENAME%.*}"
36-
HFUZZ_RUN_ARGS="--exit_upon_crash -v -n8 --run_time 30"
36+
CORPUS_DIR="hfuzz_workspace/$FILE/input"
37+
CORPUS_COUNT=$(find "$CORPUS_DIR" -type f 2>/dev/null | wc -l)
38+
echo "Fuzzing $FILE (corpus: $CORPUS_COUNT files)"
39+
HFUZZ_RUN_ARGS="--exit_upon_crash -n8 --run_time 30"
3740
if [ "$FILE" = "chanmon_consistency_target" -o "$FILE" = "fs_store_target" ]; then
3841
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -F 64"
3942
fi

0 commit comments

Comments
 (0)