rio icon indicating copy to clipboard operation
rio copied to clipboard

Invalid layout assumptions for std::net::SocketAddrV{4, 6}

Open a1phyr opened this issue 4 years ago • 0 comments

https://github.com/spacejam/rio/blob/319f7fb04014aa88540c3539bd97d5a0006a1eb9/src/io_uring/uring.rs#L733-L752

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.

a1phyr avatar Mar 21 '21 19:03 a1phyr