-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
net: ip: net_pkt: Fix net_pkt_pull data buffer corruption #22335
net: ip: net_pkt: Fix net_pkt_pull data buffer corruption #22335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you inverted the commit messages and the actual patches
You are correct. I'll resubmit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some minor nits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
tests/net/net_pkt/src/main.c
Outdated
zassert_mem_equal(pkt_data_readback, | ||
&pkt_data[PULL_AMOUNT], | ||
PULL_TEST_PKT_DATA_SIZE - PULL_AMOUNT, | ||
"Pakcet data changed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "Pakcet".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, resubmitted.
Changed size related variables type to size_t to handle large packet buffers correctly Signed-off-by: David D <a8961713@gmail.com>
Added a test case for net_pkt_pull() with large packet buffers Signed-off-by: David D <a8961713@gmail.com>
Fixes #22307