Fuzz target + full pre-publish gate hardening - #1
Merged
Conversation
Adds a libFuzzer target feeding arbitrary bytes to the public `decompress` entry point (the MS-XCA §2.2.4 decompressor consumed by prefetch-forensic and memf-*), asserting the invariant that hostile input yields Ok or a typed Err, never a panic/abort/OOM. The output-size hint is capped at 1 MiB so the caller- controlled Vec::with_capacity is never the thing under test. fuzz.yml runs a bounded campaign weekly + on demand; ci.yml's fuzz-check job compiles it on every push. A local ~18k-exec smoke run (seeded with the real prefetch vectors) produced no crash — the bounds-checked decoder is panic-free. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Restructures ci.yml into separate jobs (fmt · clippy -D warnings · test on the ubuntu/macos/windows matrix · low-MSRV 1.85 build · cargo-deny · gitleaks · 100%-function coverage · nightly fuzz-check · docs), matching the fleet gate. Adds renovate.json (rangeStrategy bump + lockFileMaintenance + Actions digest pinning) and .pre-commit-config.yaml (fmt/clippy/gitleaks parity with CI). Cleans stale copy-paste from the vmdk crate: clippy.toml doc-idents, .gitleaks.toml allowlist, deny.toml (adds [graph] + LLVM-exception, drops the vmdk-specific bits). .gitignore gains OS/editor cruft + fuzz build output. rustfmt.toml drops the unstable imports_granularity line (ignored on the pinned stable, only emitted a warning). Bumps 0.1.0 -> 0.1.1 (gate + fuzz hardening). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
v2.0.4's bundled cargo-deny fails to load the RustSec advisory DB when an advisory (RUSTSEC-2026-0124) carries a CVSS 4.0 vector. v2.0.20 parses it.
h4x0r
marked this pull request as ready for review
July 12, 2026 10:14
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
Hardens
xpress-huffman(MS-XCA §2.2.4 /LZXPRESS_HUFFMANdecompressor, consumed byprefetch-forensicandmemf-*) to the full SecurityRonin pre-publish gate. Priority was the missing fuzz target; the rest brings CI/config up to theleveldb-forensicstandard. Not for publish — draft, no tag.Priority 1 — fuzz target (the real gap)
fuzz/fuzz_targets/decompress.rsfeeds arbitrary bytes to the publicdecompressfn, asserting hostile input yieldsOkor a typedErr(TruncatedTable/BadMatchOffset), never a panic/abort/OOM. Output-size hint capped at 1 MiB so the caller-controlledVec::with_capacityis never the thing under test.fuzz.ymlruns a bounded campaign weekly + on demand (nightly,cargo +nightly fuzz run);ci.ymlfuzz-checkjob compiles it on every push.Priority 2 — pre-publish gate
-D warnings(both feature sets) · test on ubuntu/macos/windows · low-MSRV 1.85 build · cargo-deny · gitleaks · 100%-function coverage · nightly fuzz-check · docs.renovate.json(rangeStrategybump+ lockFileMaintenance + Actions digest pinning),.pre-commit-config.yaml(fmt/clippy/gitleaks parity with CI).clippy.tomldoc-idents,.gitleaks.tomlallowlist,deny.toml(added[graph]+ LLVM-exception, dropped vmdk bits)..gitignoregains OS/editor cruft + fuzz output.rustfmt.tomldropped the unstableimports_granularityline.LICENSE(verbatim Apache-2.0), README (SecurityRonin standard, no Stars badge),docs/{privacy,terms,validation}.md,docs.yml(SHA-pinned Pages deploy),[lints](forbid(unsafe)+deny unwrap/expect).Local gate results (all PASS)
cargo fmt --check·cargo clippy --all-targets --all-features -- -D warnings·cargo test --all-features(13 pass) ·cargo deny check(all ok) ·cargo llvm-cov --fail-under-functions 100(26/26 functions) ·cargo +nightly fuzz check· fuzz smoke run (0 crashes).Version bumped 0.1.0 → 0.1.1.
🤖 Generated with Claude Code