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 (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>
- Loading branch information