From e739ba1bd903408d485efb2a6d3c765c9bf23ba7 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 aa38a8d3e1..10da5062e2 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -502,6 +502,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) {