RustSec Advisory Database
RUSTSEC-2018-0013
Vec-to-vec transmutations could lead to heap overflow/corruption
Details
Affected versions of this crate switched the length and capacity arguments in the Vec::from_raw_parts() constructor, which could lead to memory corruption or data leakage.
The flaw was corrected by using the constructor correctly.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | safe-transmute | From 0.4.0 before 0.10.1 (fixed in 0.10.1) |