From 606f5e0c041537ce6ecdd20412193f37f6baeff9 Mon Sep 17 00:00:00 2001 From: Romain Malmain Date: Sun, 3 Nov 2024 19:40:28 +0100 Subject: [PATCH] fixes --- libafl/src/observers/map/const_map.rs | 2 +- libafl_bolts/src/ownedref.rs | 2 +- libafl_qemu/src/modules/edges.rs | 0 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 libafl_qemu/src/modules/edges.rs diff --git a/libafl/src/observers/map/const_map.rs b/libafl/src/observers/map/const_map.rs index c64f05d114..f928e66ca1 100644 --- a/libafl/src/observers/map/const_map.rs +++ b/libafl/src/observers/map/const_map.rs @@ -201,7 +201,7 @@ where #[must_use] pub unsafe fn from_mut_ptr(name: &'static str, map_ptr: ptr::NonNull) -> Self { ConstMapObserver { - map: OwnedMutSizedSlice::from_raw_parts_mut(map_ptr), + map: OwnedMutSizedSlice::from_raw_mut(map_ptr), name: Cow::from(name), initial: T::default(), } diff --git a/libafl_bolts/src/ownedref.rs b/libafl_bolts/src/ownedref.rs index d051b98d0c..d28faa15f1 100644 --- a/libafl_bolts/src/ownedref.rs +++ b/libafl_bolts/src/ownedref.rs @@ -943,7 +943,7 @@ impl<'a, T: 'a + Sized, const N: usize> OwnedMutSizedSlice<'a, T, N> { /// The pointer must be valid and point to a map of the size `size_of() * N` /// The content will be dereferenced in subsequent operations. #[must_use] - pub unsafe fn from_raw_parts_mut(ptr: NonNull) -> OwnedMutSizedSlice<'a, T, N> { + pub unsafe fn from_raw_mut(ptr: NonNull) -> OwnedMutSizedSlice<'a, T, N> { Self { inner: OwnedMutSizedSliceInner::RefRaw( ptr.as_ptr() as *mut [T; N], diff --git a/libafl_qemu/src/modules/edges.rs b/libafl_qemu/src/modules/edges.rs deleted file mode 100644 index e69de29bb2..0000000000