diff --git a/src/main.rs b/src/main.rs index 6ba6a97..c6b0619 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,8 +74,8 @@ unsafe fn extract(buf: Buf) -> (Ptr, Ptr) { ); // both buffers are now filled with fancy provenance bytes, read the pointers out and return them - let a = a_buf.as_ptr().cast::().read(); - let b = b_buf.as_ptr().cast::().read(); + let a = a_buf.as_ptr().cast::().read_unaligned(); + let b = b_buf.as_ptr().cast::().read_unaligned(); (a, b) }