Skip to content

Derive the HTTP/2 fuzz model's connection window from client frames - #542

Merged
ericmj merged 1 commit into
fuzz-http2-close-listen-socketfrom
fuzz-http2-connection-window
Nov 30, 2026
Merged

ericmj merged 1 commit into
fuzz-http2-close-listen-socketfrom
fuzz-http2-connection-window

Conversation

@ericmj

@ericmj ericmj commented Oct 16, 2026

Copy link
Copy Markdown
Member

The model seeded the server's view of the connection window from Mint's own receive_window_remaining, so a client that kept a 16,777,216-byte window internally without sending the WINDOW_UPDATE that announces it went unnoticed. The view now starts at the 65,535-byte initial window (RFC 9113 section 6.9.2) and only grows by the stream 0 WINDOW_UPDATE frames the test server decodes from what Mint writes, starting with the one that may follow the client preface. The preface is still required to be a SETTINGS frame followed by at most that WINDOW_UPDATE, and anything else fails the scenario before it runs.

@ericmj
ericmj added this pull request to stack #544 October 16, 2026 13:10
@coveralls

coveralls commented Oct 16, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 0

Coverage decreased (-0.4%) to 90.288%

Details

  • Coverage decreased (-0.4%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 126 coverage regressions across 9 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

126 previously-covered lines in 9 files lost coverage.

File Lines Losing Coverage Coverage
lib/mint/http1.ex 48 87.56%
lib/mint/http2.ex 41 95.22%
lib/mint/core/transport/ssl.ex 15 87.05%
lib/mint/http.ex 12 65.71%
lib/mint/core/headers.ex 3 78.95%
lib/mint/core/util.ex 3 91.43%
lib/mint/core/transport/tcp.ex 2 91.67%
lib/mint/http2/frame.ex 1 99.09%
lib/mint/negotiate.ex 1 81.82%

Coverage Stats

Coverage Status
Relevant Lines: 2049
Covered Lines: 1850
Line Coverage: 90.29%
Coverage Strength: 730.57 hits per line

💛 - Coveralls

The model seeded the server's view of the connection window from Mint's
own receive_window_remaining, so a client that kept a 16,777,216-byte
window internally without sending the WINDOW_UPDATE that announces it
went unnoticed. The view now starts at the 65,535-byte initial window
(RFC 9113 section 6.9.2) and only grows by the stream 0 WINDOW_UPDATE
frames the test server decodes from what Mint writes, starting with the
one that may follow the client preface. The preface is still required to
be a SETTINGS frame followed by at most that WINDOW_UPDATE, and anything
else fails the scenario before it runs.
@ericmj
ericmj force-pushed the fuzz-http2-connection-window branch from 5677ece to cd50bf6 Compare November 30, 2026 12:02
@ericmj
ericmj merged commit 0ba01ac into main Nov 30, 2026
3 checks passed
@ericmj
ericmj deleted the fuzz-http2-connection-window branch November 30, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants