stateful runner: handle Address in generate_inputs - #2
Open
booleanfunction wants to merge 1 commit into
Open
Conversation
The stateful runner's generate_inputs was missing a FuzzerType::Address arm and fell through to unimplemented!() for any target with an address parameter. The stateless runner's equivalent function handles it correctly; mirror the same arm here. Also gitignore *.code-workspace and CLAUDE.md (local-only orientation file). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The stateful runner's
generate_inputswas missing theFuzzerType::Addressarm atsrc/runner/stateful_runner/aptos_runner.rs. Any stateful fuzz target with an address parameter hitunimplemented!()at the catch-all and crashed.Why it matters
Silently blocks stateful fuzzing of any Aptos target with an address parameter — i.e. most non-trivial contracts (
mint(recipient, ...),withdraw(admin_addr, ...), etc.).Fix
Add the missing arm. Mirrors the stateless runner's equivalent at
src/runner/stateless_runner/aptos_runner_utils.rs:175— same conversion logic, no new pattern.Other
Gitignore
*.code-workspace(VSCode workspace files) andCLAUDE.md(local-only Claude orientation files) — both should be personal, not shared.