Skip to content

Commit 688c2df

Browse files
committed
fuzzer: use the cmp values
seems to provide better scoring
1 parent 6a63372 commit 688c2df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/fuzzer.zig

+1-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ export fn __sanitizer_cov_trace_pc_indir(callee: usize) void {
9494
}
9595

9696
fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {
97-
_ = arg1;
98-
_ = arg2;
99-
fuzzer.visitPc(pc);
97+
fuzzer.visitPc(pc ^ arg1 ^ arg2);
10098
//std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });
10199
}
102100

0 commit comments

Comments
 (0)