merged9c5d44efc277b0d0 #10 · opened 2026-10-24 09:15 UTC · closed 2026-10-24 22:12 UTC · merged 2026-10-24 22:12 UTC
Imported from GitHub aien-dev/readings-window#10, by drakestapleton
Labels: ready-to-merge
Base 3197d3b2851a60008302b5b5c9c0d82e8ae93cbb · Head 6a473d6e3efba591072afe409a51e8fd27c1f22f
Merged on GitHub as 55ff64b75853085b696bdb44b7497b1d669b4b14; not reachable from main 246b9530f25e933dfdb2c59d29e712577c54de93 (observed 2026-11-18T16:40:27Z)
drakestapleton wrote on 2026-10-24 09:15 UTC
Verification
PASS: git diff --check and independent source review. NOT_RUN: cargo test, release build, clippy, formatting and old-source regression execution. No Rust toolchain is installed in the editing environment. Keep this draft until required checks run.
Correction
read_head returned as soon as it found CRLFCRLF, before checking MAX_HEAD. A completed oversized header arriving in the next read could therefore pass the cap. Check delimiter endpoint i + 4 before returning; do not reject based on entire buffered length because a valid head may arrive with body bytes.
Add three regressions: exact boundary/oversize cases, unterminated input, and valid head plus trailing body crossing the read-buffer cap. Negative control: remove only the four-line production guard while retaining tests; boundary regression must fail, then pass after restore.
Separate absolute-deadline concern remains unmodified and unqualified. No live serve/collect command, service restart, SSH, deployment or visibility change. This patch does not claim to finish #9's TLS dependency/runtime acceptance.
Candidate 6bd33067d93b78faf2deaa1d0bc61219d1c3fdaf; tree 71ce14f836af57443965bd8f5c57da4eb300471a.
Apply it
git checkout -b patch-9c5d44efc277b0d03197d3b2851a60008302b5b5c9c0d82e8ae93cbb
curl -fsSL https://interplane.io/drakestapleton/readings-window/patches/9c5d44efc277b0d0.patch | git am