Skip to content

Fix clippy warnings in fuzzers (migrate to InProcessExecutor builder) - #3951

Open
Cypher-CP0 wants to merge 3 commits into
AFLplusplus:mainfrom
Cypher-CP0:fuzzers/inprocess-executor-builder
Open

Cypher-CP0 wants to merge 3 commits into
AFLplusplus:mainfrom
Cypher-CP0:fuzzers/inprocess-executor-builder

Conversation

@Cypher-CP0

@Cypher-CP0 Cypher-CP0 commented Nov 29, 2026 •

Copy link
Copy Markdown

Description

Part of #1907.

The earlier fuzzer cleanups (#3553, #3564, #3601) came before InProcessExecutor::new was deprecated in 0.16.0. Running cargo clippy across fuzzers/ now shows a new batch of warnings.

Changes

  • Migrate InProcessExecutor::new to InProcessExecutor::builder(): 25 call sites in 21 fuzzers across baby, binary_only, full_system, fuzz_anything, inprocess and structure_aware. The change is mechanical and doesn't change behavior, because new() already called the builder with the default timeout. It uses the same builder style as frida_libpng and frida_crash_repro.
  • frida_windows_gdiplus: remove a needless_return at the end of fuzz(). It only shows up on Windows, where just one of the two #[cfg] tail blocks is compiled.
  • libafl_atheris: remove the dead "secondary harness" closure, left over from the old TracingStage setup (it now uses ShadowTracingStage). Also remove the unused TracingStage import and the extra & in println!/panic!.

Testing

  • cargo clippy -- -D warnings passes in every touched fuzzer, including frida_windows_gdiplus on Windows.
  • baby_fuzzer_wasm was checked with --target x86_64-unknown-linux-gnu, and nautilus_sync on stable.

Notes

  • In frida_windows_gdiplus and frida_executable_libpng, the migrated executors never passed options.timeout, but other executors in the same files do. I kept the behavior identical. I'm happy to add the timeout in a follow-up if that was an oversight.

Checklist

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

    Formatting and clippy passed for libafl, libafl_bolts, libafl_cc, libafl_frida and libafl_libfuzzer. I stopped before libafl_nyx/libafl_qemu, which build QEMU and aren't touched by this PR. cargo clippy -- -D warnings passes in every touched fuzzer.

@Cypher-CP0
Cypher-CP0 marked this pull request as ready for review November 29, 2026 12:59
@Cypher-CP0

Copy link
Copy Markdown
Author

The 4 failing jobs (rust_code_with_inprocess_executor, frida_crash_repro, intel_pt_baby_fuzzer, libfuzzer_libpng_norestart) all failed in the Prepare step before building. The log shows rustup toolchain install 1.99.1 timing out while connecting to static.rust-lang.org (tcp connect error: Connection timed out). It looks like a transient network issue. Could someone re-run them please?

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