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
Hi, we consider that casting from sa_family to c_int would break the alignment requirement because the first one is aligned to 2 bytes while the later one is aligned to 4 bytes. Consider following two functions:
The source of unsoundness
Hi, we consider that casting from
sa_family
toc_int
would break the alignment requirement because the first one is aligned to 2 bytes while the later one is aligned to 4 bytes. Consider following two functions:libpnet/pnet_datalink/src/linux.rs
Line 206 in 87f362d
libpnet/pnet_datalink/src/unix_interfaces.rs
Lines 114 to 115 in 87f362d
send_addr
is also aligned to the bytes ofsa_family
, and it could lead to undefined behavior in safe functionThe text was updated successfully, but these errors were encountered: