atproto utils for zig zat.dev
atproto sdk zig
Something went wrong. Try again.
add errdefer for decode allocations, verify with checkAllAllocationFailures master
Add errdefer allocator.free() for array items and map entries slices in decodeAt so partial allocations are cleaned up on error. Add 3 tests using std.testing.checkAllAllocationFailures to exhaustively verify that every allocation failure in decode (flat map, nested record, array) is handled without leaking — tests use ArenaAllocator over the failing allocator to match the intended usage pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author jcalabro Co-author Claude Opus 4.6 (1M context) Date (Apr 4, 2026, 11:52 AM UTC) Commit ece81a96 ece81a96418ddffd929000292f7719ce1ece41f3 Parent 62e99128 62e99128acc8a209d3ba68dcc07cf83489b7a136