From 3730554a466fd6fd0aedd66ce98aa5c678a85aa9 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 22 Oct 2024 11:27:20 +0800 Subject: [PATCH] remove UB assert in uncached --- libcortex_a9/src/uncached.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcortex_a9/src/uncached.rs b/libcortex_a9/src/uncached.rs index 1ff962c..fc016b2 100644 --- a/libcortex_a9/src/uncached.rs +++ b/libcortex_a9/src/uncached.rs @@ -33,8 +33,6 @@ impl UncachedSlice { } let slice = unsafe { core::slice::from_raw_parts_mut(ptr, len) }; - // verify size - assert!(unsafe { slice.get_unchecked(len) } as *const _ as usize <= start + size); // initialize for e in slice.iter_mut() { *e = default();