This package has limited bug data (2 entries). Check back later or see the package health page for the full signal.

socket2 known bugs

cargo

2 known bugs in socket2, with affected versions, fixes and workarounds. Sourced from upstream issue trackers.

2
bugs
Known bugs
SeverityAffectedFixed inTitleStatusSource
medium0.0.0-00.3.16
`socket2` invalidly assumes the memory layout of std::net::SocketAddr
The [`socket2`](https://crates.io/crates/socket2) crate has assumed `std::net::SocketAddrV4` and `std::net::SocketAddrV6` have the same memory layout as the system C representation `sockaddr`. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the change happens.
fixedosv:RUSTSEC-2020-0079
mediumany0.3.16
socket2 invalidly assumes the memory layout of std::net::SocketAddr
The socket2 crate has assumed `std::net::SocketAddrV4` and `std::net::SocketAddrV6` have the same memory layout as the system C representation `sockaddr`. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the change happens.
fixedosv:GHSA-458v-4hrf-g3m4
API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/bugs/cargo/socket2
socket2 bugs — known issues per version | DepScope | DepScope