Invalid layout assumptions for std::net::SocketAddrV{4, 6}
a1phyr opened this issue · comments
Alphyr commented
Lines 733 to 752 in 319f7fb
This code assumes that the layout of std::net::SocketAddrV{4,6}
matches libc::sockaddr
, but std makes no such promise. See rust-lang/rust#78802 for more details.
Example fixes: tokio-rs/mio#1388, rust-lang/socket2#120.