Skip to content

test(fuzz): extend varint decode fuzz target with round-trip (FCV-5 #2318) - #4405

Merged
oferchen merged 2 commits into
masterfrom
feature/fcv-5-varint-fuzz
May 18, 2026
Merged

oferchen merged 2 commits into
masterfrom
feature/fcv-5-varint-fuzz

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add fuzz/fuzz_targets/varint_decode.rs covering the full varint / varlong codec surface: read_varint, decode_varint, read_varlong (all valid min_bytes), read_longint, read_int, and read_varint30_int across protocol versions 28/30/31/32.
  • Extend with an encoder/decoder round-trip cell driven by arbitrary::Arbitrary so encoder/decoder asymmetries surface as fuzzing crashes rather than going unnoticed.
  • Register the new binary in fuzz/Cargo.toml and seed fuzz/corpus/varint_decode/seed_basic so libFuzzer starts from a non-empty baseline.
  • Pick up pre-existing rustfmt drift in two sibling fuzz targets (filter_differential.rs, simd_checksum_parity.rs) so the harness stays clean under cargo fmt --all.

No source-code changes in the production crates; fuzz harness only. No new dependencies.

Test plan

  • cargo fmt --all clean (fuzz workspace)
  • Fuzz target builds with cargo +nightly fuzz build varint_decode (CI-only)

Closes #2318.

@github-actions github-actions Bot added the test label May 18, 2026
@oferchen
oferchen force-pushed the feature/fcv-5-varint-fuzz branch 5 times, most recently from 4a3a002 to 5422b64 Compare May 18, 2026 01:48
@oferchen
oferchen force-pushed the feature/fcv-5-varint-fuzz branch from 5422b64 to 158e622 Compare May 18, 2026 02:10
@oferchen
oferchen merged commit 4e8f2b7 into master May 18, 2026
23 of 28 checks passed
@oferchen
oferchen deleted the feature/fcv-5-varint-fuzz branch May 18, 2026 02:12
oferchen added a commit that referenced this pull request May 18, 2026
…2318) (#4405)

* test(fuzz): extend varint decode fuzz target with round-trip (FCV-5 #2318)

* style: cargo fmt
oferchen added a commit that referenced this pull request May 18, 2026
…2318) (#4405)

* test(fuzz): extend varint decode fuzz target with round-trip (FCV-5 #2318)

* style: cargo fmt
oferchen added a commit that referenced this pull request Aug 24, 2026
…2318) (#4405)

* test(fuzz): extend varint decode fuzz target with round-trip (FCV-5 #2318)

* style: cargo fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant