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

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    e3309c9 View commit details
    Browse the repository at this point in the history
  2. Replace unsafe.Slice with memory copying to avoid potential fault mem…

    …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 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    870d43b View commit details
    Browse the repository at this point in the history