Unsound uninitialized array
shinmao opened this issue · 0 comments
shinmao commented
Hi I found some unsound use of MaybeUninit
which might lead to UB.
It is UB to have an uninitialized f32
. I think the code should be changed to:
let mut out: [MaybeUninit<f32>; 8] = ...MaybeUninit::uninit().assume_init();
Same issue happens on i32
.