Skip to content

Releases

zig-cobs v1.2.0 — coverage-measured

Choose a tag to compare

@SMC17 SMC17 released this 18 May 21:48

Adopts the zig-cobs v1.2.0 coverage-driver pattern. See CHANGELOG for the measured line-coverage number and methodology.

v1.1.0 — Fuzz harness (117K trials) + CI fuzz gate

Choose a tag to compare

@SMC17 SMC17 released this 14 May 18:40

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:
    1. Round-trip invariance: decode(encode(x)) == x for all x.
    2. Zero-freeness: encode output never contains a 0x00 byte.
    3. Decoder soundness: decode on adversarial random bytes either succeeds or returns InvalidEncoding / BufferTooSmall — never panics, never overflows the destination buffer.
  • zig build fuzz step (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 test now includes a 2,400-trial CI-friendly fuzz subset (1.2K boundary + 1K random + 200 adversarial).
  • CI workflow runs the full zig build fuzz after 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

Choose a tag to compare

@SMC17 SMC17 released this 14 May 02:02

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

Choose a tag to compare

@SMC17 SMC17 released this 13 May 21:43

Initial release. See CHANGELOG.md for details. Cross-validated tests, CI, runnable example, MIT license. Minimum Zig: 0.16.0.