- Reported
-
- Issued
-
- Package
-
cyfs-base
(crates.io)
- Type
-
INFO
Unsound
- Keywords
-
#alignment
#unsound
- Aliases
-
- References
-
- Patched
-
no patched versions
Description
The function ChunkId::new
creates a misaligned pointer by casting mutable pointer of u8
slice which has alignment 1 to the mutable pointer of u32
which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.
Advisory available under CC0-1.0
license.