GHSA-jrcf-4jp8-m28v

Source
https://github.com/advisories/GHSA-jrcf-4jp8-m28v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-jrcf-4jp8-m28v/GHSA-jrcf-4jp8-m28v.json
Aliases
Published
2021-08-25T20:50:35Z
Modified
2023-11-08T04:03:39.469693Z
Details

The miow 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.

References

Affected packages

crates.io / miow

Package

Name
miow

Affected ranges

Type
SEMVER
Events
Introduced
0.3.0
Fixed
0.3.6