commit 0ba77eca7430ecb7c9852df175f3fc175bf50bbf (tree)
parent 68700e5de1e593d8f924e5ff0e7ebdd47373b3c8
Author: tjog <28024277+tjog@users.noreply.github.com>
Date: Sat, 3 May 2025 23:33:26 +0200
disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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) {