Skip to content

Commit 1f62267

Browse files
committed
fuzz: log corpus size and delta after each fuzz target
Show the new corpus count and how many files were added, giving visibility into which targets are discovering new coverage. AI tools were used in preparing this commit.
1 parent 3b54e9c commit 1f62267

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fuzz/ci-fuzz.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ for TARGET in src/bin/*.rs; do
5353
fi
5454
export HFUZZ_RUN_ARGS
5555
cargo --color always hfuzz run $FILE
56-
log_time "Finished $FILE"
56+
NEW_CORPUS_COUNT=$(find "$CORPUS_DIR" -type f 2>/dev/null | wc -l)
57+
DELTA=$((NEW_CORPUS_COUNT - CORPUS_COUNT))
58+
log_time "Finished $FILE (corpus: $NEW_CORPUS_COUNT, delta: +$DELTA)"
5759
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
5860
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
5961
for CASE in hfuzz_workspace/$FILE/SIG*; do

0 commit comments

Comments
 (0)