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

Replace unsafe.Slice with memory copying to avoid potential fault memory issue #6665

Closed
wants to merge 2 commits into from

Conversation

XinShuYang
Copy link
Contributor

  • Refactored ListIPForwardRows to copy IP forwarding table rows.
  • Removed unsafe.Slice and replaced with pointer dereferencing and copying.
  • This change addresses a potential fault memory issue when iterating through the IP forwarding table.

…ory issue

* 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.

Signed-off-by: Shuyang Xin <[email protected]>
@XinShuYang
Copy link
Contributor Author

/test-windows-all

@luolanzone
Copy link
Contributor

Can this be closed? @XinShuYang

@XinShuYang
Copy link
Contributor Author

Can this be closed? @XinShuYang

Yes, thanks for the reminder.

@XinShuYang XinShuYang closed this Sep 18, 2024
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