diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-09-09 21:16:06 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-09-11 13:41:29 -0700 |
| commit | 2d005827b874f27535cda72c80b6558d9d4cd30c (patch) | |
| tree | 9080004df76b836ff98416e1779bdcd85677ffd9 /lib/std/Build/Fuzz | |
| parent | 0cdccff51912359b7ec5afa57fbbd5bb69d8f3a2 (diff) | |
| download | zig-2d005827b874f27535cda72c80b6558d9d4cd30c.tar.gz zig-2d005827b874f27535cda72c80b6558d9d4cd30c.zip | |
make lowest stack an internal libfuzzer detail
This value is useful to help determine run uniqueness in the face of
recursion, however it is not valuable to expose to the fuzzing UI.
Diffstat (limited to 'lib/std/Build/Fuzz')
| -rw-r--r-- | lib/std/Build/Fuzz/WebServer.zig | 2 | ||||
| -rw-r--r-- | lib/std/Build/Fuzz/abi.zig | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/std/Build/Fuzz/WebServer.zig b/lib/std/Build/Fuzz/WebServer.zig index b5ad86af15..391f67e823 100644 --- a/lib/std/Build/Fuzz/WebServer.zig +++ b/lib/std/Build/Fuzz/WebServer.zig @@ -406,7 +406,6 @@ fn sendCoverageContext( const seen_pcs = cov_header.seenBits(); const n_runs = @atomicLoad(usize, &cov_header.n_runs, .monotonic); const unique_runs = @atomicLoad(usize, &cov_header.unique_runs, .monotonic); - const lowest_stack = @atomicLoad(usize, &cov_header.lowest_stack, .monotonic); if (prev_unique_runs.* != unique_runs) { // There has been an update. if (prev_unique_runs.* == 0) { @@ -431,7 +430,6 @@ fn sendCoverageContext( const header: abi.CoverageUpdateHeader = .{ .n_runs = n_runs, .unique_runs = unique_runs, - .lowest_stack = lowest_stack, }; const iovecs: [2]std.posix.iovec_const = .{ makeIov(std.mem.asBytes(&header)), diff --git a/lib/std/Build/Fuzz/abi.zig b/lib/std/Build/Fuzz/abi.zig index 0e16f0d5fa..c3f32d309b 100644 --- a/lib/std/Build/Fuzz/abi.zig +++ b/lib/std/Build/Fuzz/abi.zig @@ -13,7 +13,6 @@ pub const SeenPcsHeader = extern struct { n_runs: usize, unique_runs: usize, pcs_len: usize, - lowest_stack: usize, /// Used for comptime assertions. Provides a mechanism for strategically /// causing compile errors. @@ -79,7 +78,6 @@ pub const CoverageUpdateHeader = extern struct { flags: Flags = .{}, n_runs: u64, unique_runs: u64, - lowest_stack: u64, pub const Flags = packed struct(u64) { tag: ToClientTag = .coverage_update, |
