Skip to content

Add option for regular stats file updates #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kyakdan
Copy link
Contributor

@kyakdan kyakdan commented Apr 15, 2025

Honggfuzz updates the stats file only when an increase in coverage (edge, pc, cmp, hw) counters is observed. The stats file includes metrics such as total_exec and exec_per_sec that are interesting to observe regularly to programmatically monitor the progress of a fuzzing run when honggfuzz is run in a pipeline or from a tool that observes the stats file. This PR adds an option to specify an interval in seconds to update the stats file regardless of coverage increases. This is similar to the AFL_FUZZER_STATS_UPDATE_INTERVAL environment variable for AFL++.

More specifically, the responsible function fuzz_perfFeedback is adjusted as follows:

  • If there is no coverage increase and the input is imported, then remove this useless input from the corpus
  • If there is a coverage increase, log the progress line using LOG_I(...)
  • If there is a coverage increase or the update interval has elapsed, update the stats file.
  • Finally, if there is a coverage increase, add the input to the corpus and update the coverage metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant