All reports
Medium

Users vulnerable to unaligned read of `*const *const c_char` pointer

Affected versions

Rust / Cargousers
Affected versions
<= 0.11.0
Fixed version
Not reported

Description

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

  • uzers (an actively maintained fork of the users crate)

  • sysinfo

Links