diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-23 21:05:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 21:05:48 +0000 |
commit | 7cc33c15fe547dacebe7da154ffc9c1c5b595d6e (patch) | |
tree | 32f3a721661429947076f54d8dd98303139f24ef /bors.toml | |
parent | 14418f4ea105b3a4642e2bc91b02b7d590bfa16a (diff) | |
parent | ca2c9208ecff9ae4ad92ed72fc49202f82e0640e (diff) | |
download | nix-7cc33c15fe547dacebe7da154ffc9c1c5b595d6e.zip |
Merge #1770
1770: Fix SockaddrLike::from_raw with unaligned inputs r=rtzoeller a=asomers
The major users of this function are functions like gethostname, which
will always properly align their buffers. But out-of-crate consumers
could manually construct an unaligned buffer. Handle that correctly.
Enable Clippy's cast_ptr_alignment lint. It's disabled by default as it
reports many false positives, but it would've caught this problem.
Reported-by: Miri
Fixes: 1769
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'bors.toml')
0 files changed, 0 insertions, 0 deletions