Skip to content

[CP] Added Bound check for UDP length in XDP datapath (#6057)#6082

Open
guhetier wants to merge 1 commit into
release/2.4from
guhetier/cp_udp_length_bound_check_2_4_copilot
Open

[CP] Added Bound check for UDP length in XDP datapath (#6057)#6082
guhetier wants to merge 1 commit into
release/2.4from
guhetier/cp_udp_length_bound_check_2_4_copilot

Conversation

@guhetier

@guhetier guhetier commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Added bound check, to validate UDP header's internal Length field is at least sizeof(UDP_HEADER) to avoid integer underflow.

Testing

CI

Documentation

No documentation impact.

@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.89%. Comparing base (b4a36ff) to head (545ca13).

Additional details and impacted files
@@               Coverage Diff               @@
##           release/2.4    #6082      +/-   ##
===============================================
+ Coverage        86.08%   86.89%   +0.81%     
===============================================
  Files               56       56              
  Lines            17341    17341              
===============================================
+ Hits             14928    15069     +141     
+ Misses            2413     2272     -141     

☔ 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:21
@guhetier guhetier requested a review from a team as a code owner June 12, 2026 21:21
## Description
Added bound check, to validate UDP header's internal Length field is at
least sizeof(UDP_HEADER) to avoid integer underflow.

## Testing

## Documentation
No documentation impact.
@guhetier guhetier force-pushed the guhetier/cp_udp_length_bound_check_2_4_copilot branch from 66652fa to 545ca13 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