Skip to content

[CP] Virtual buffer overflow fix (#6022)#6084

Open
guhetier wants to merge 2 commits into
release/2.4from
guhetier/cp_virtual_buffer_overflow_2_4_copilot
Open

[CP] Virtual buffer overflow fix (#6022)#6084
guhetier wants to merge 2 commits into
release/2.4from
guhetier/cp_virtual_buffer_overflow_2_4_copilot

Conversation

@guhetier

@guhetier guhetier commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Changed guard condition to fix virtual buffer issue: added VirtualBufferLength != 0 check and clamped doubled length to UINT32_MAX via a new NewLength local.

Conflict resolution note: on release/2.4, the trace log call (IncreaseRxBuffer) appears before QuicRecvBufferIncreaseVirtualBufferLength (opposite order from main). The existing 2.4 ordering was preserved; only the fix itself (guard, clamp, and (uint32_t)NewLength in both call sites) was applied. The auto-merge of src/generated/linux/stream_recv.c.clog.h* from the original commit was kept as-is.

Testing

CI

Documentation

No documentation impact.

Comment thread src/core/stream_recv.c Outdated
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.83%. Comparing base (b4a36ff) to head (fb7208e).

Additional details and impacted files
@@               Coverage Diff               @@
##           release/2.4    #6084      +/-   ##
===============================================
+ Coverage        86.08%   86.83%   +0.75%     
===============================================
  Files               56       56              
  Lines            17341    17343       +2     
===============================================
+ Hits             14928    15060     +132     
+ Misses            2413     2283     -130     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@guhetier guhetier marked this pull request as ready for review June 12, 2026 21:22
@guhetier guhetier requested a review from a team as a code owner June 12, 2026 21:22
gaurav2699 and others added 2 commits June 12, 2026 15:34
## Description
Changed guard condition to fix virtual buffer issue..

## Testing

NA
## Documentation

NA
@guhetier guhetier force-pushed the guhetier/cp_virtual_buffer_overflow_2_4_copilot branch from ddef9f9 to fb7208e Compare June 12, 2026 23:29
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