-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
b3936b1
commit eab0b6c
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters