Commit 084040d
Guard HTTP/2 frame sequence lookahead (#364)
H2Session::write() pops the current frame from the stream frame
sequence and then immediately looks at the next entry to decide
which flags to set. When the current frame is the last queued
frame, that unconditional front() call reads past the end of the
deque and aborts proxy-verifier with a std::deque::front()
assertion.
Treat an empty post-pop frame sequence as having no next frame by
using H2Frame::INVALID for the lookahead value. That preserves the
existing flag selection logic while avoiding the invalid deque
access on the final frame.
Co-authored-by: bneradt <bneradt@yahooinc.com>1 parent ca50667 commit 084040d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | | - | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1509 | 1511 | | |
1510 | 1512 | | |
1511 | 1513 | | |
| |||
0 commit comments