commit 688c2df6464bd10a2dcfdf49e89c313e01da9991 (tree)
parent 6a6337205328168ca788d6ed0b8a011e95cbaca5
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 24 Jul 2024 23:17:06 -0700
fuzzer: use the cmp values
seems to provide better scoring
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/fuzzer.zig b/lib/fuzzer.zig
@@ -94,9 +94,7 @@ export fn __sanitizer_cov_trace_pc_indir(callee: usize) void {
}
fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {
- _ = arg1;
- _ = arg2;
- fuzzer.visitPc(pc);
+ fuzzer.visitPc(pc ^ arg1 ^ arg2);
//std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });
}