Skip to content

Fix 0/0 stability feedback for libafl_nyx #3162

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

nathaniel-bennett
Copy link
Contributor

@nathaniel-bennett nathaniel-bennett commented Apr 15, 2025

Description

When the first map_first_filled_count returned from a fuzzer is equal to 0, stability will be initialized to a value of 0/0 and not updated as the map becomes filled until the first instance of instability. For runs that are 100% stable, this means that the output will always report 0% stability.

This PR adds a check to ensure the stability metric isn't initialized until the first non-zero map fill count.

Resolves #3161

Checklist

  • I have run ./scripts/precommit.sh and addressed all comments

@tokatoka tokatoka merged commit a198b33 into AFLplusplus:main Apr 15, 2025
109 checks passed
@tokatoka
Copy link
Member

Thank you

@nathaniel-bennett
Copy link
Contributor Author

@tokatoka thanks for the help debugging!

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.

libafl_nyx reports 0% stability (both without/with CalibrationStage)
2 participants