libfuzzer: implement enough symbols for hello world

This commit is contained in:
Andrew Kelley 2024-07-21 19:13:29 -07:00
parent b9225aea78
commit 7930efc60b

View file

@ -0,0 +1,11 @@
const std = @import("std");
export threadlocal var __sancov_lowest_stack: usize = 0;
export fn __sanitizer_cov_8bit_counters_init(start: [*]u8, stop: [*]u8) void {
std.debug.print("__sanitizer_cov_8bit_counters_init start={*}, stop={*}\n", .{ start, stop });
}
export fn __sanitizer_cov_pcs_init(pcs_beg: [*]const usize, pcs_end: [*]const usize) void {
std.debug.print("__sanitizer_cov_pcs_init pcs_beg={*}, pcs_end={*}\n", .{ pcs_beg, pcs_end });
}