From 0ba77eca7430ecb7c9852df175f3fc175bf50bbf Mon Sep 17 00:00:00 2001 From: tjog <28024277+tjog@users.noreply.github.com> Date: Sat, 3 May 2025 23:33:26 +0200 Subject: [PATCH] disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it --- lib/std/os/linux.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 794fccdf13..f055022203 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -523,6 +523,7 @@ pub const getauxval = if (extern_getauxval) struct { }.getauxval else getauxvalImpl; fn getauxvalImpl(index: usize) callconv(.c) usize { + @disableInstrumentation(); const auxv = elf_aux_maybe orelse return 0; var i: usize = 0; while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {