Title: Cover frame header field boundaries and invalid sizes by ryanduguid · Pull Request #173 · python-hyper/hyperframe · GitHub
Open Graph Title: Cover frame header field boundaries and invalid sizes by ryanduguid · Pull Request #173 · python-hyper/hyperframe
X Title: Cover frame header field boundaries and invalid sizes by ryanduguid · Pull Request #173 · python-hyper/hyperframe
Description: Summary Add 35 frame-header cases covering 24-bit lengths, nonzero stream IDs with the reserved bit set, unknown-frame flags and error metadata, and buffers shorter or longer than nine bytes. Evidence The original suite passes 148 tests with 100% branch coverage. The candidate passes 183 tests with 100% branch coverage on Linux Python 3.10, 3.11, 3.12, 3.13 and 3.14, plus Windows Python 3.14. Five controlled faults each pass all 148 original tests but fail the added cases: truncating high length bits, truncating high stream-ID bits, accepting oversized headers, reporting a truncated unknown-frame length, and dropping an unknown flag's high bit. The added tests reject these with six, two, two, two and two failures respectively on both platforms. Source Ruff and strict mypy pass on both platforms. Configured Linux Sphinx, manifest, wheel/sdist and Twine checks pass. The test file is included in the sdist, and all runtime files match the base. The fault injections and verification helpers are outside the PR. Risk Only tests/test_frame_header.py is added. Unverified macOS, other Windows versions and hosted CI were not run.
Open Graph Description: Summary Add 35 frame-header cases covering 24-bit lengths, nonzero stream IDs with the reserved bit set, unknown-frame flags and error metadata, and buffers shorter or longer than nine bytes. Evide...
X Description: Summary Add 35 frame-header cases covering 24-bit lengths, nonzero stream IDs with the reserved bit set, unknown-frame flags and error metadata, and buffers shorter or longer than nine bytes. Evide...
Opengraph URL: https://github.com/python-hyper/hyperframe/pull/173
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7599c680-2e90-756b-6b13-e613bb7fbeb6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A3FC:CCFBF:34C07C3:46A9E12:6B06EC88 |
| html-safe-nonce | 4db871775db65fc5a0f83e44a0fa745fae9323bb7b77178b296b21cae003b940 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0ZDOkNDRkJGOjM0QzA3QzM6NDZBOUUxMjo2QjA2RUM4OCIsInZpc2l0b3JfaWQiOiI0NDQzODc2MDc3Mzk1NzAwODcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3ac08c150b2a52b7a3c0c33378b86da6169cdb49d49c8b463e04a4a0622edd7b |
| hovercard-subject-tag | pull_request:4779742004 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-hyper/hyperframe/pull/173/files |
| twitter:image | https://avatars.githubusercontent.com/u/152749594?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/152749594?s=400&v=4 |
| og:image:alt | Summary Add 35 frame-header cases covering 24-bit lengths, nonzero stream IDs with the reserved bit set, unknown-frame flags and error metadata, and buffers shorter or longer than nine bytes. Evide... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-hyper/hyperframe git https://github.com/python-hyper/hyperframe.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 33842039 |
| octolytics-dimension-repository_nwo | python-hyper/hyperframe |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33842039 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyperframe |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af8913cd0f2f77c41796be449ac66a9108825abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width