Repository navigation
Releases
Releases · SMC17/zig-cobs
zig-cobs v1.2.0 — coverage-measured
v1.1.0 — Fuzz harness (117K trials) + CI fuzz gate
First post-hygiene-v1.0 feature release. Adds a substantive fuzz harness.
Added
tests/fuzz.zig— three-property fuzz harness asserting against arbitrary byte inputs:- Round-trip invariance:
decode(encode(x)) == xfor allx. - Zero-freeness:
encodeoutput never contains a0x00byte. - Decoder soundness:
decodeon adversarial random bytes either succeeds or returnsInvalidEncoding/BufferTooSmall— never panics, never overflows the destination buffer.
- Round-trip invariance:
zig build fuzzstep (ReleaseFast): 117,000 trials (12K boundary + 100K random round-trip + 5K adversarial decoder).- Boundary sizes specifically exercised at 1,000 reps each:
{0, 1, 2, 253, 254, 255, 256, 508, 509, 510, 762, 4096}— the overhead-byte injection boundary that random-PRNG-only trials would hit with low probability. zig build testnow includes a 2,400-trial CI-friendly fuzz subset (1.2K boundary + 1K random + 200 adversarial).- CI workflow runs the full
zig build fuzzafter the unit-test step.
Verified
- Linux x86_64: 117,000 trials pass, all three properties hold.
- Apple Silicon arm64 (mac, nix-shell zig 0.16): identical 117,000 trials pass.
Why this matters
A COBS framer with no fuzz harness can't claim production-grade quality. Wire-format errors are the kind of bug that emerges only at boundary conditions the typical hand-written test won't reach: the 254-byte overhead-byte injection, the 0-byte input, the random-bytes-fed-to-decoder adversarial path. This release closes that gap and gates it in CI.
See CHANGELOG.md for full context.
v1.0.0 — Production-Grade Hygiene Milestone
v1.0.0 — 2026-05-13
Production-grade hygiene milestone.
- LICENSE, README, CONTRIBUTING, SECURITY, CI all present.
- Repo declared at v1.x milestone: existing surface stable; breaking changes bump to v2.x.
- Engineering posture: Virgil work-in-progress convention adapted for OSS — v1.0 means we stand behind the existing surface; v1.x patches refine without breaking.
See CHANGELOG.md for full context.
zig-cobs v0.1.0 — initial release
Initial release. See CHANGELOG.md for details. Cross-validated tests, CI, runnable example, MIT license. Minimum Zig: 0.16.0.