Repository navigation
test(fuzz): extend varint decode fuzz target with round-trip (FCV-5 #2318) - #4405
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/fcv-5-varint-fuzz
branch
5 times, most recently
from
May 18, 2026 01:48
4a3a002 to
5422b64
Compare
oferchen
force-pushed
the
feature/fcv-5-varint-fuzz
branch
from
May 18, 2026 02:10
5422b64 to
158e622
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
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.
Summary
fuzz/fuzz_targets/varint_decode.rscovering the full varint / varlong codec surface:read_varint,decode_varint,read_varlong(all validmin_bytes),read_longint,read_int, andread_varint30_intacross protocol versions 28/30/31/32.arbitrary::Arbitraryso encoder/decoder asymmetries surface as fuzzing crashes rather than going unnoticed.fuzz/Cargo.tomland seedfuzz/corpus/varint_decode/seed_basicso libFuzzer starts from a non-empty baseline.filter_differential.rs,simd_checksum_parity.rs) so the harness stays clean undercargo fmt --all.No source-code changes in the production crates; fuzz harness only. No new dependencies.
Test plan
cargo fmt --allclean (fuzz workspace)cargo +nightly fuzz build varint_decode(CI-only)Closes #2318.