summaryrefslogtreecommitdiff
path: root/anim/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/build.zig')
-rw-r--r--anim/build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/anim/build.zig b/anim/build.zig
index 63d962e..7022caa 100644
--- a/anim/build.zig
+++ b/anim/build.zig
@@ -239,12 +239,12 @@ pub fn build(b: *std.Build) void {
// no environment but ASan's leak check off (it fails under a tracer):
// plain by instruction from main to its fault at `ret` (the recorder
// says `exit 139`, SIGSEGV); ASan by instruction from main to the first
- // instruction of `__asan_report_store1` (582 stops: the report itself is
- // a million more), and the same run again by syscall alone, for the
+ // stop in `__asan_report_store1` (`--until`: the report itself is a
+ // million more), and the same run again by syscall alone, for the
// report's `write`s to fd 2 as written.
for ([_]struct { name: []const u8, asan: bool, args: []const []const u8, exit: []const u8 }{
.{ .name = "overflow", .asan = false, .args = &.{ "--by", "insn", "--stack", "1024", "--around", "256", "--disasm", "69", "-s", "64", "--from", "main" }, .exit = "exit 139" },
- .{ .name = "overflow_asan", .asan = true, .args = &.{ "--asan", "--by", "insn", "--stack", "1024", "--around", "256", "--disasm", "69", "-s", "64", "--from", "main", "--steps", "582" }, .exit = "exit 0" },
+ .{ .name = "overflow_asan", .asan = true, .args = &.{ "--asan", "--by", "insn", "--stack", "1024", "--around", "256", "--disasm", "69", "-s", "64", "--from", "main", "--until", "__asan_report_store1" }, .exit = "exit 0" },
.{ .name = "overflow_report", .asan = true, .args = &.{ "--by", "syscall", "--stack", "0", "--telescope", "0", "-s", "4096" }, .exit = "exit 1" },
}) |r| {
const cc = b.addSystemCommand(&.{ "clang", "-O0", "-g", "-fno-omit-frame-pointer", "-no-pie", "-fno-stack-protector" });