Closed
Description
shadowsocks-rs
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.
Example occurrences of this issue in this project (probably not exhaustive):
shadowsocks-rust/crates/shadowsocks/src/relay/sys/unix/mod.rs
Lines 22 to 37 in bf409c2
Metadata
Metadata
Assignees
Labels
No labels