Skip to content

Commit

Permalink
im stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Nov 3, 2024
1 parent 236b2b3 commit 481cee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn main() {
};
// Create an observation channel using the signals map
let observer =
unsafe { ConstMapObserver::<u8, 3>::from_mut_ptr("signals", ptr::NonNull::new(map_ptr)) };
unsafe { ConstMapObserver::<u8, 3>::from_mut_ptr("signals", ptr::NonNull::new(map_ptr).expect("map ptr is null.") ) };
// Create a stacktrace observer
let mut bt = shmem_provider.new_on_shmem::<Option<u64>>(None).unwrap();
let bt_observer = BacktraceObserver::new(
Expand Down
2 changes: 1 addition & 1 deletion libafl_qemu/src/modules/edges/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ mod generators {
if IS_CONST_MAP {
const {
assert!(
IS_CONST_MAP && MAP_SIZE > 0,
!IS_CONST_MAP || MAP_SIZE > 0,
"The size of a const map should be bigger than 0."
);
MAP_SIZE.overflowing_sub(1).0
Expand Down

0 comments on commit 481cee8

Please sign in to comment.