Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Update Crash on Allocation Failure #4447

Merged
merged 8 commits into from
Mar 3, 2025
Merged

Key Update Crash on Allocation Failure #4447

merged 8 commits into from
Mar 3, 2025

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Aug 8, 2024

Description

While running spinquic locally I hit a crash in the keyupdate scenario where write key failed to allocate and was later tried to be read. This accounts for that edge case now.

Testing

Covered by spinquic. Also added a QuicDrill test.

Documentation

N/A

@nibanks nibanks requested a review from a team as a code owner August 8, 2024 16:58
@nibanks nibanks added the Bug: Core A code bug in the Core MsQuic code label Aug 8, 2024
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.94%. Comparing base (ba9e8be) to head (e6e71d3).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4447      +/-   ##
==========================================
- Coverage   87.30%   86.94%   -0.36%     
==========================================
  Files          56       56              
  Lines       17630    17630              
==========================================
- Hits        15391    15328      -63     
- Misses       2239     2302      +63     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

anrossi
anrossi previously approved these changes Aug 9, 2024

PacketBuffer.push_back(Header.HeaderByte);
PacketBuffer.insert(PacketBuffer.end(), DestCid.begin(), DestCid.end());
PacketBuffer.push_back((uint8_t) (PacketNumber >> 24));// TODO - different packet number sizes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should the todo be addressed now?

@nibanks nibanks merged commit 65a2523 into main Mar 3, 2025
387 of 391 checks passed
@nibanks nibanks deleted the key-update-crash branch March 3, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Core A code bug in the Core MsQuic code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants