Repository navigation
Conversation
The stateless reset tokens that a session generates for its own connection IDs (in NEW_CONNECTION_ID frames and for the preferred address) were added to the token map that the endpoint consults for incoming stateless resets. That map is meant to hold only the tokens issued by the peer, and session teardown only removes those, so the locally issued entries outlived the session as dangling pointers. A short header packet for an unknown connection ID that ended in one of these tokens was then dispatched to the destroyed session instead of being answered with a stateless reset, and once the session had been garbage collected the lookup read freed memory. Assisted-by: Claude Code Signed-off-by: woolfi182 <maksymmosiura@gmail.com>
The static import of node:crypto threw ERR_NO_CRYPTO in builds without OpenSSL before the hasQuic check could skip the test. Import it dynamically after the check, as the other QUIC tests do. Refs: nodejs#67000 Assisted-by: Claude Code
Collaborator
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67835 +/- ##
=======================================
Coverage 90.51% 90.51%
=======================================
Files 805 805
Lines 285878 285878
Branches 55200 55188 -12
=======================================
Hits 258756 258756
+ Misses 17214 17212 -2
- Partials 9908 9910 +2 🚀 New features to boost your workflow:
|
efekrskl
approved these changes
Nov 27, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Takes over #67000 with a commit for the failing test. Original commit author is preserved