You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spun out of the multi-agent review on #1085 (empty-blob bao delivery).
Problem
ChunkData has no minimum-length validation (crates/protocol/src/client.rs), so a peer can send an unbounded stream of zero-lengthChunkData{ bytes: [] } frames before StreamEnd. In the client receive loops each empty frame leaves cumulative / bytes_since_voucher unchanged, so the overrun guard (cumulative > expected_wire) never trips and the loop makes no application-level progress:
The empty-blob change (#1054, expected_wire == 0) makes this trivially reachable with zero expected bytes, but it is pre-existing and applies to any blob size (a non-empty delivery can be padded with empty frames too).
Impact
Low. No integrity or payment impact — 0 bytes are billed, no vouchers are signed, and the content hash is still verified on exit. The loop is bounded only by QUIC idle/stream timeouts, not by application logic, so the worst case is a weak liveness/annoyance already backstopped by the transport.
Options
Reject zero-length ChunkData frames outright (they carry no payload), or
Cap the number of consecutive no-progress frames per stream.
Not blocking any current work; filed for tracking. Source refs: crates/client-pull/src/lib.rs (receive_and_pay, UpstreamPull::next_chunk), crates/protocol/src/client.rs (ChunkData).
Activity
test(node): guard the fixes — 3 of 4 were passing on reverted behavior
fix: address the multi-agent review of #1145
fix: bound the requester's fetch loop, and classify what comes back (#…