1 result · Feed
-
Unscored —
Integer overflow in `array::ReadWrite::new()` leading to potential memory corruption
In `array::ReadWrite::new()` (line 83 of `accessor/src/array.rs`), `let bytes = mem::size_of::<T>() * len` can overflow `usize` when `len` is very large. In release mode, this silently wraps, potentially making `bytes = 0`. The mapper then maps with 0 bytes, …