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

[ncp] fix ncp spinel parsing methods #2585

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Irving-cl
Copy link
Contributor

This PR fixes a critical issue in NcpSpinel parsing methods.

The parsing methods use uint8_t as the length of input frame which is not sufficient for large frame like Ip6StreamNet, which could be at most 1000+ bytes.

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 46.16%. Comparing base (2b41187) to head (0e517f6).
Report is 861 commits behind head on main.

Files with missing lines Patch % Lines
src/ncp/ncp_spinel.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2585      +/-   ##
==========================================
- Coverage   55.77%   46.16%   -9.62%     
==========================================
  Files          87      105      +18     
  Lines        6890    12575    +5685     
  Branches        0      912     +912     
==========================================
+ Hits         3843     5805    +1962     
- Misses       3047     6457    +3410     
- Partials        0      313     +313     

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

Copy link
Member

@abtink abtink left a comment

Choose a reason for hiding this comment

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

👍

@Irving-cl Irving-cl requested a review from jwhui November 6, 2024 11:08
@jwhui
Copy link
Member

jwhui commented Nov 6, 2024

@Irving-cl , can you help resolve conflicts?

@Irving-cl Irving-cl force-pushed the fix_ncp_parse_ip6_stream branch from 1e2b70b to 3356398 Compare November 6, 2024 11:13
@Irving-cl Irving-cl force-pushed the fix_ncp_parse_ip6_stream branch from 3356398 to 0e517f6 Compare November 6, 2024 11:14
@Irving-cl
Copy link
Contributor Author

@jwhui Conflict resolved!

@jwhui jwhui merged commit 15409fd into openthread:main Nov 6, 2024
32 checks passed
@Irving-cl Irving-cl deleted the fix_ncp_parse_ip6_stream branch November 13, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants