Lucene search

K
rustsecRustsecRUSTSEC-2021-0035
HistoryMar 04, 2021 - 12:00 p.m.

`quinn` invalidly assumes the memory layout of std::net::SocketAddr

2021-03-0412:00:00
rustsec.org
7

0.002 Low

EPSS

Percentile

53.8%

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

0.002 Low

EPSS

Percentile

53.8%

Related for RUSTSEC-2021-0035