Skip to content

test(fuzz): nightly cargo-fuzz target on the wire decode surface (OSTIF T-13) - #86

Merged
tonibergholm merged 5 commits into
mainfrom
test/fuzz-wire-decode
Jul 18, 2026
Merged

tonibergholm merged 5 commits into
mainfrom
test/fuzz-wire-decode

Conversation

@tonibergholm

Copy link
Copy Markdown
Member

Executes T-13 (G-001's fuzzing half) from the OSTIF audit (#76):

  • fuzz/ standalone workspace with one libFuzzer target, wire_decode, covering the remote-facing decode surface: read_frame_opt (the frame-length header ADR-0039 self-identifies as the residual weak point), Request::decode, parse_response, every wire body decoder, and Object::decode.
  • fuzz.yml: nightly scheduled 10-minute run + workflow_dispatch + a PR-scoped trigger on the fuzz files themselves (validating this very PR). Crash reproducers upload as artifacts. SHA-pinned, contents: read, never a merge gate.
  • The fuzz crate mirrors the root [patch.crates-io] glib pin so resolution matches production.

Verification: cargo check clean locally; the full nightly libFuzzer build + run executes on this PR via the new trigger (local machine is rustup-less Homebrew Rust, so CI is the honest verifier here). Do not merge until the cargo fuzz (wire_decode) job on this PR is green.

…IF T-13, G-001)

- fuzz/ standalone workspace (excluded from root): libfuzzer-sys target
  wire_decode covering the framed wire reader (read_frame_opt — the
  ADR-0039 self-identified residual weakness), Request::decode,
  parse_response, every body decoder, and Object::decode.
- .github/workflows/fuzz.yml: nightly schedule + workflow_dispatch,
  10-minute libFuzzer run, crash reproducers uploaded on failure,
  SHA-pinned actions, contents:read. Never a PR gate.
- The fuzz crate carries the same [patch.crates-io] glib pin as the
  root workspace so dependency resolution matches production.

Verified: cargo check clean locally (Homebrew Rust has no rustup/
nightly, so the libFuzzer build is verified via a dispatched CI run
on this branch — see PR).
…ly tag for fuzz, drop ignored toolchain inputs

The dtolnay/rust-toolchain tag commits hardcode their toolchain and
have no 'toolchain' input (surfaced as a warning annotation on the
first sbom run, and a hard failure on the fuzz job which needed
nightly but got 1.96.1). Pin the nightly tag's SHA for fuzz.yml;
remove the ignored inputs from ci.yml/sbom.yml and correct comments.
…file

rust-toolchain.toml pins stable 1.96.1 and silently overrode the
installed nightly default inside the checkout ('option Z is only
accepted on the nightly compiler'). Job-level env wins over the file.
@tonibergholm
tonibergholm merged commit 8944661 into main Jul 18, 2026
9 checks passed
@tonibergholm
tonibergholm deleted the test/fuzz-wire-decode branch July 18, 2026 09:59
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