Skip to content

Commit

Permalink
sized slice
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Nov 3, 2024
1 parent 7982f7f commit 93b5bbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn main() {
let mut shmem = shmem_provider.new_shmem(MAP_SIZE).unwrap();
//let the forkserver know the shmid
shmem.write_to_env("__AFL_SHM_ID").unwrap();
let shmem_map = shmem.as_slice_mut();
let shmem_map: &mut [u8; MAP_SIZE] = shmem.as_slice_mut().try_into().expect("could not convert slice to sized slice.");

// Create an observation channel using the signals map
let edges_observer = HitcountsMapObserver::new(ConstMapObserver::<_, MAP_SIZE>::new(
Expand Down

0 comments on commit 93b5bbf

Please sign in to comment.