mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
fuzzer: use the cmp values
seems to provide better scoring
This commit is contained in:
parent
6a63372053
commit
688c2df646
1 changed files with 1 additions and 3 deletions
|
|
@ -94,9 +94,7 @@ export fn __sanitizer_cov_trace_pc_indir(callee: usize) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {
|
fn handleCmp(pc: usize, arg1: u64, arg2: u64) void {
|
||||||
_ = arg1;
|
fuzzer.visitPc(pc ^ arg1 ^ arg2);
|
||||||
_ = arg2;
|
|
||||||
fuzzer.visitPc(pc);
|
|
||||||
//std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });
|
//std.log.debug("0x{x}: comparison of {d} and {d}", .{ pc, arg1, arg2 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue