• Findings (ordered by severity) 1. Critical: parseInitialRequest can return requests…
Private research annotation
Sign in to add a private research label or note.
Jump to turn (8)
- 1• Findings (ordered by severity) Critical: parseInitialRequest can return reques
- 2[Request interrupted by user]
- 3High: reserved-bit handling is too strict in control parsers (interop risk). par
- 4[Request interrupted by user]
- 5no superpowers
- 6[Request interrupted by user for tool use]
- 7what abouuy 3 5 6
- 8High: parseInitialRequest does not enforce key RFC startup constraints.
- User
• Findings (ordered by severity)
- Critical: parseInitialRequest can return requests with dangling header slices. HeaderMap is zero-copy, so header name/value slices are stored by reference, not copied (serval-core/header_map.zig:54). parseInitialRequest builds CONTINUATION fragments into a local stack buffer (serval-h2/request.zig:75, serval-h2/request.zig:133, serval-h2/request.zig:145). It then calls decodeRequestHeaderBlock, which uses a local decoder (serval-h2/request.zig:188); HPACK decode may return slices into decoder scratch/input buffers (serval-h2/hpack.zig:411, serval-h2/hpack.zig:423). Returning Request after that can expose invalid memory.
- High: stream window adjustment logic is not RFC-correct under SETTINGS initial-window changes. adjustAllSendWindows clamps to 0/max instead of preserving signed window deltas (serval-h2/stream.zig:245, serval-h2/stream.zig:257, serval-h2/stream.zig:263). This is used when peer settings change (serval-server/h2/connection.zig:79). Large negative deltas can be incorrectly flattened, allowing premature sends.
- High: parseInitialRequest does not enforce key RFC startup constraints.
- User