Rust

Rust

Made by DeepSource

Detected conversion between differently sized raw slices RS-S1013

Security
Major
cwe-758

Conversion between raw slices of differently sized types is undefined behaviour, because the length of the pointer is not converted using as.

Bad practice

let x = &[10, 20];
let foo = x as *const [i32] as *const [u8];

Reference