authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-24 23:17:06-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-25 18:52:21-07:00
log688c2df6464bd10a2dcfdf49e89c313e01da9991
tree13c7fa62cbe65047da0cd109784ef417e92bd6ae
parent6a6337205328168ca788d6ed0b8a011e95cbaca5

fuzzer: use the cmp values

seems to provide better scoring

1 files changed, 1 insertions(+), 3 deletions(-)

lib/fuzzer.zig+1-3
...@@ -94,9 +94,7 @@ export fn __sanitizer_cov_trace_pc_indir(callee: usize) void {...@@ -94,9 +94,7 @@ export fn __sanitizer_cov_trace_pc_indir(callee: usize) void {
94}94}
9595
96fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {96fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {
97 _ = arg1;97 fuzzer.visitPc(pc ^ arg1 ^ arg2);
98 _ = arg2;
99 fuzzer.visitPc(pc);
100 //std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });98 //std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });
101}99}
102100