Skip to content

Add a tiny fuzz test framework#9050

Open
alexreinking wants to merge 11 commits intomainfrom
alexreinking/better-fuzzing
Open

Add a tiny fuzz test framework#9050
alexreinking wants to merge 11 commits intomainfrom
alexreinking/better-fuzzing

Conversation

@alexreinking
Copy link
Member

This PR enables writing fuzz tests that are compatible with libFuzzer, but do not require it. When building without libFuzzer globally enabled, the build will fall back to a simple command line runner and a std::mt19937_64 randomness source.

We also add a toolchain for macOS with Homebrew and a preset that uses it to build with libFuzzer. I have tested this locally to work both ways. The buildbots should immediate start building and testing with the stdlib backend.

@alexreinking alexreinking requested a review from abadams March 16, 2026 20:45
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.

2 participants