GIT-025: PACKRecordEnd carves obj.size straight off the wire unbounded scratch

Now
OPEN
Sev
MED

PACKRecordEnd (dog/git/PACK.c:184-202) measures a record's extent by inflating it into BASS scratch sized a_carve(u8, sc, obj.size) and obj.size is the record's own untrusted varint, up to ~2^60. One corrupt or hostile record demands an arbitrary carve: OOM/DoS at every scan site (PIDXScan per record, the js binding via GIT-007). Found in the 2026-07-24 dog/git review. Method: work.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome