onionwire/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rust-dev 2cf9e8c7c6
fuzz: cargo-fuzz harness for the ratchet/qr/dispatch/file parsers
Four pure parsers eat untrusted peer input and had no structured fuzzing:

- ratchet_frame  -> RatchetState::from_bytes + RatchetState::decrypt
                    (the 'rat ' frame parser: prefix, version, length,
                    N/PN bounds, DH step, AEAD open)
- qr_decode      -> qr::decode on pasted/scanned invite strings
- dispatch_classify -> dispatch::classify on raw decrypted plaintext,
                    including the 'rat ' -> Kind::Ratchet routing arm
- file_decode    -> file::decode on 'fil ' chunk frames

No src/ change: every target calls the shipped public API. The fuzz crate is
its own workspace (empty [workspace] table), so no root Cargo.toml dependency
is added and cargo build/test at the root never compiles it.

Seeds in fuzz/seeds/ are committed and copied into the gitignored working
corpus by scripts/run-fuzz.sh; each target asserts properties a panic-free
decode must hold (a rejected ratchet frame leaves the state byte-identical,
a decoded invite is 32/32/onion-shaped, a decoded chunk re-encodes).

Verified: cargo +nightly fuzz list -> 4 targets; scripts/run-fuzz.sh with
FUZZ_SECS=60 FUZZ_JOBS=4 -> exit 0, oom/timeout/crash: 0/0/0 for all four,
fuzz/artifacts/* empty.
2026-09-17 21:04:20 -04:00
..
arti-watch.py ci: watch upstream Arti/tor-* releases daily and file an upgrade issue 2026-09-12 13:55:07 -04:00
build-android-local.sh feat(android): auto-publish signed APK and AAR from CI 2026-09-12 00:54:17 -04:00
build-release-local.sh ci(release): auto-tag and publish aarch64+x86_64 on main 2026-09-12 00:52:46 -04:00
publish-release.sh fix(ci): resolve conflict markers left in scripts/publish-release.sh 2026-09-14 13:22:53 -04:00
release-body.md ci(release): auto-tag and publish aarch64+x86_64 on main 2026-09-12 00:52:46 -04:00
run-fuzz.sh fuzz: cargo-fuzz harness for the ratchet/qr/dispatch/file parsers 2026-09-17 21:04:20 -04:00
watch-release-run.sh scripts: watcher with correct Forgejo job status codes 2026-09-10 13:15:12 -04:00