Repository navigation
Fix clippy warnings in fuzzers (migrate to InProcessExecutor builder) - #3951
Open
Cypher-CP0 wants to merge 3 commits into
Open
Cypher-CP0 wants to merge 3 commits into
Cypher-CP0 wants to merge 3 commits into
Conversation
Cypher-CP0
marked this pull request as ready for review
November 29, 2026 12:59
Author
|
The 4 failing jobs ( |
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.
Description
Part of #1907.
The earlier fuzzer cleanups (#3553, #3564, #3601) came before
InProcessExecutor::newwas deprecated in 0.16.0. Runningcargo clippyacrossfuzzers/now shows a new batch of warnings.Changes
InProcessExecutor::newtoInProcessExecutor::builder(): 25 call sites in 21 fuzzers acrossbaby,binary_only,full_system,fuzz_anything,inprocessandstructure_aware. The change is mechanical and doesn't change behavior, becausenew()already called the builder with the default timeout. It uses the same builder style asfrida_libpngandfrida_crash_repro.frida_windows_gdiplus: remove aneedless_returnat the end offuzz(). 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 oldTracingStagesetup (it now usesShadowTracingStage). Also remove the unusedTracingStageimport and the extra&inprintln!/panic!.Testing
cargo clippy -- -D warningspasses in every touched fuzzer, includingfrida_windows_gdipluson Windows.baby_fuzzer_wasmwas checked with--target x86_64-unknown-linux-gnu, andnautilus_syncon stable.Notes
frida_windows_gdiplusandfrida_executable_libpng, the migrated executors never passedoptions.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.shand addressed all commentsFormatting and clippy passed for
libafl,libafl_bolts,libafl_cc,libafl_fridaandlibafl_libfuzzer. I stopped beforelibafl_nyx/libafl_qemu, which build QEMU and aren't touched by this PR.cargo clippy -- -D warningspasses in every touched fuzzer.