We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd5609 commit 261b6b5Copy full SHA for 261b6b5
fuzzers/inprocess/dynamic_analysis/src/lib.rs
@@ -11,6 +11,7 @@ use std::{
11
io::{self, Read, Write},
12
path::PathBuf,
13
process,
14
+ ptr::addr_of_mut,
15
};
16
17
use clap::{Arg, Command};
@@ -252,7 +253,8 @@ fn fuzz(
252
253
// Create an observation channel to keep track of the execution time
254
let time_observer = TimeObserver::new("time");
255
- let func_list = unsafe { OwnedMutPtr::from_raw_mut(Lazy::force_mut(&mut FUNCTION_LIST)) };
256
+ let func_list =
257
+ unsafe { OwnedMutPtr::from_raw_mut(Lazy::force_mut(&mut *addr_of_mut!(FUNCTION_LIST))) };
258
let profiling_observer = ProfilingObserver::new("concatenated.json", func_list)?;
259
let callhook = CallHook::new();
260
0 commit comments