GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — quic: validate maxPayloadSize range by christianaurichzm · Pull Request #67531 · nodejs/node Conversation
Member
$ node --experimental-quic -e "require('node:quic').connect('127.0.0.1:1', { alpn: 'x', maxPayloadSize: 0 })" Floating point exception (core dumped) The option goes unchecked into ngtcp2's The new cases in Refs: #65827
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe maxPayloadSize option was copied into ngtcp2's max_tx_udp_payload_size unchecked. ngtcp2 requires 1200 to 65527 and only asserts it, so in a release build 0 gave the congestion controller an empty initial window and the process died with SIGFPE in ngtcp2_cc_cubic_init() when the connection was created. Values from 1 to 1199 were accepted and the session was destroyed before it opened. Reject values outside that range when the session options are parsed, for both connect() and listen(). Signed-off-by: Christian Aurich Zanettini Martins <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67531 +/- ## ======================================== Coverage 90.68% 90.68% ======================================== Files 799 800 +1 Lines 280314 280461 +147 Branches 54133 54164 +31 ======================================== + Hits 254204 254347 +143 - Misses 16228 16238 +10 + Partials 9882 9876 -6 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/79232/ 💚 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in d15ad82 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The maxPayloadSize option was copied into ngtcp2's max_tx_udp_payload_size unchecked. ngtcp2 requires 1200 to 65527 and only asserts it, so in a release build 0 gave the congestion controller an empty initial window and the process died with SIGFPE in ngtcp2_cc_cubic_init() when the connection was created. Values from 1 to 1199 were accepted and the session was destroyed before it opened. Reject values outside that range when the session options are parsed, for both connect() and listen(). Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: #67531 Refs: #65827 Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: James M Snell <[email protected]>
The maxPayloadSize option was copied into ngtcp2's max_tx_udp_payload_size unchecked. ngtcp2 requires 1200 to 65527 and only asserts it, so in a release build 0 gave the congestion controller an empty initial window and the process died with SIGFPE in ngtcp2_cc_cubic_init() when the connection was created. Values from 1 to 1199 were accepted and the session was destroyed before it opened. Reject values outside that range when the session options are parsed, for both connect() and listen(). Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: nodejs#67531 Refs: nodejs#65827 Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.