From 65edc92bec9df514a8820aa1140190692a8a9115 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 6 Nov 2022 18:05:50 +0100 Subject: [PATCH] whooooooooops --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }