You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At line 85, p is aligned to 4 bytes as u32, but it was cast to u64 with stronger alignment requirement. Misaligned pointer dereference could lead to undefined behavior in safe function.
The source of unsoundness
Hi, we are the PhD researchers from SunLab. We found that
pop64
might have unsound implementation.sfmt/src/lib.rs
Lines 81 to 89 in 7767d23
At line 85,
p
is aligned to 4 bytes asu32
, but it was cast tou64
with stronger alignment requirement. Misaligned pointer dereference could lead to undefined behavior in safe function.To reproduce the bug
to run with cargo run
The text was updated successfully, but these errors were encountered: