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

Automated cherry pick of #6664: Replace unsafe.Slice with memory copying to avoid potential #6672

Open
wants to merge 1 commit into
base: release-1.15
Choose a base branch
from

Conversation

XinShuYang
Copy link
Contributor

Cherry pick of #6664 on release-1.15.

#6664: Replace unsafe.Slice with memory copying to avoid potential

For details on the cherry pick process, see the cherry pick requests page.

…ory issue (antrea-io#6664)

* Refactored ListIPForwardRows to copy IP forwarding table rows.
* Removed unsafe.Slice and replaced with manual pointer dereferencing and copying.

This change addresses a potential fault memory issue when iterating through the IP forwarding table,
caused by the use of slices after corresponding memory has been freed, leading to access failure.

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Signed-off-by: Wenying Dong <wenyingd@vmware.com>
@XinShuYang XinShuYang added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants