Unaligned read in users crate (#1776)

This commit is contained in:
David Tolnay
2023-09-10 17:56:33 -07:00
committed by GitHub
parent 552ac23f93
commit 88ef232903

View File

@@ -0,0 +1,26 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "users"
date = "2023-09-10"
url = "https://github.com/ogham/rust-users/issues/55"
informational = "unsound"
keywords = ["unaligned-read"]
[versions]
patched = []
```
# Unaligned read of `*const *const c_char` pointer
Affected versions dereference a potentially unaligned pointer. The pointer is
commonly unaligned in practice, resulting in undefined behavior.
In some build modes, this is observable as a panic followed by abort. In other
build modes the UB may manifest in some other way, including the possibility of
working correctly in some architectures.
The crate is not currently maintained, so a patched version is not available.
## Recommended alternatives
- [`sysinfo`](https://crates.io/crates/sysinfo)