atproto utils for zig zat.dev
atproto sdk zig
Something went wrong. Try again.
fix CAR v1 validation gaps, fix readUvarint overflow, add 17 tests master
CAR reader now validates version==1, requires non-empty roots, rejects zero-length blocks, and enforces a 1 MiB per-block size limit (matching atmos). Fix readUvarint where the overflow check was dead code — shift was u6 (max 63) so the >= 64 check never triggered; replaced with a bounded for(0..10) loop. Add 17 CAR tests covering header validation, truncation, corruption, round-trip determinism, and size limits. Add 5 CAR benchmarks (read/write/round-trip with and without hash verification). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author jcalabro Co-author Claude Opus 4.6 (1M context) Date (Apr 3, 2026, 3:47 PM UTC) Commit 968d03a4 968d03a4988a12a81e6668a128153bd63ca546ee Parent 71c34577 71c34577f2d2ea6eb63143b57ddbd76eb354bc23