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