Commit 0ba77eca74

tjog <28024277+tjog@users.noreply.github.com>
2025-05-03 23:33:26
disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it
1 parent 68700e5
Changed files (1)
lib
std
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) {