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 0ea9ff2 commit 6877be0Copy full SHA for 6877be0
libafl_targets/src/sancov_pcguard.rs
@@ -19,12 +19,12 @@ pub unsafe extern "C" fn __sanitizer_cov_trace_pc_guard(guard: *mut u32) {
19
let pos = *guard as usize;
20
#[cfg(feature = "sancov_pcguard_edges")]
21
{
22
- (EDGES_MAP_PTR as *mut u8).add(pos).write_volatile(1);
+ (EDGES_MAP_PTR as *mut u8).add(pos).write(1);
23
}
24
#[cfg(feature = "sancov_pcguard_hitcounts")]
25
26
- let val = (EDGES_MAP_PTR as *mut u8).add(pos).read_volatile();
27
- (EDGES_MAP_PTR as *mut u8).add(pos).write_volatile(val + 1);
+ let val = (EDGES_MAP_PTR as *mut u8).add(pos).read();
+ (EDGES_MAP_PTR as *mut u8).add(pos).write(val + 1);
28
29
30
0 commit comments