Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix aliasing issues in SipHasher
  • Loading branch information
RalfJung committed Oct 31, 2020
1 parent 607076e commit 9749eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/hash/sip.rs
Expand Up @@ -111,7 +111,7 @@ macro_rules! load_int_le {
debug_assert!($i + mem::size_of::<$int_ty>() <= $buf.len());
let mut data = 0 as $int_ty;
ptr::copy_nonoverlapping(
$buf.get_unchecked($i),
$buf.as_ptr().add($i),
&mut data as *mut _ as *mut u8,
mem::size_of::<$int_ty>(),
);
Expand Down

0 comments on commit 9749eb7

Please sign in to comment.