-
Notifications
You must be signed in to change notification settings - Fork 3
Closed

Description
Context: rust-lang/rust#78802 and https://www.reddit.com/r/rust/comments/wcw93o/a_major_refactor_of_rusts_ip_address/
These lines caught my eye while I was reading the code:
Lines 189 to 190 in 550ec42
// Leans on the fact that SocketAddrV4 and SocketAddrV6 are | |
// transparent wrappers around SOCKADDR. |
Lines 331 to 332 in 550ec42
// Leans on the fact that SocketAddrV4 and SocketAddrV6 are | |
// transparent wrappers around sockaddr_in and sockaddr_in6. |
A lot of crates were recently patched to remove the assumption of the memory layout of network primitives. Any code continuing to do so will result in UB, so I wanted to raise this issue.
Metadata
Metadata
Assignees
Labels
No labels