You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function should probably be marked unsafe, since the other methods in Table depend on p being a valid BPF module pointer. Alternatively, it should be private (or pub(crate)), since it's really only useful in BPF::table().
The text was updated successfully, but these errors were encountered:
Table::new()
can cause a segfault in safe code from dereferencing an arbitrary pointer. To illustrate:The function should probably be marked
unsafe
, since the other methods inTable
depend onp
being a valid BPF module pointer. Alternatively, it should be private (orpub(crate)
), since it's really only useful inBPF::table()
.The text was updated successfully, but these errors were encountered: