Closed
Description
The problem code is here:
Lines 87 to 142 in 77a6eb4
It assumes that the layout of std::net::SocketAddrV{4,6}
matches libc::sockaddr
, but this can't be assumed.
Related issues: tokio-rs/mio#1386, rust-lang/socket2#119, rust-lang/rust#78802.
Mio has roughly the same code, this was fixed in tokio-rs/mio#1388, for socket2: rust-lang/socket2#120.
Metadata
Metadata
Assignees
Labels
No labels