Skip to content

Add AFL++ fuzzing test crate and docs - #2016

Draft
leighmcculloch wants to merge 3 commits into
mainfrom
afl-fuzz-test-crate
Draft

Add AFL++ fuzzing test crate and docs#2016
leighmcculloch wants to merge 3 commits into
mainfrom
afl-fuzz-test-crate

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Aug 18, 2026

Copy link
Copy Markdown
Member

What

Add a tests/fuzz_afl crate that fuzzes a Soroban contract with afl.rs, with a README that walks a first-time fuzzer through setup, running a campaign, reading the AFL++ UI, and reproducing a crash, and document the same workflow in the testutils::arbitrary module.

Why

The arbitrary module only explained fuzzing via cargo-fuzz/libFuzzer, so contract authors using AFL++ had no supported harness pattern or worked example to copy.

Known limitations

The fuzz harness lives in its own workspace and is built by make build-fuzz-afl, which requires cargo-afl and a C compiler, so it is not part of the default build or CI.

SemVer Change

  • Major (vX._._) - Breaking change to the public API.
  • Minor (v_.Y._) - Additive change to the public API.
  • Patch (v_._.Z) - No change to the public API.

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