authorgravatar for 28024277+tjog@users.noreply.github.comtjog <28024277+tjog@users.noreply.github.com> 2025-05-03 23:33:26+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-05 07:26:06+02:00
loge739ba1bd903408d485efb2a6d3c765c9bf23ba7
treec97092bb51f3fd3b9209aeba78f8755fb0d24c3d
parentf592674642ba79601e0eeda0492063c40e2206db
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+1
...@@ -502,6 +502,7 @@ pub const getauxval = if (extern_getauxval) struct {...@@ -502,6 +502,7 @@ pub const getauxval = if (extern_getauxval) struct {
502}.getauxval else getauxvalImpl;502}.getauxval else getauxvalImpl;
503503
504fn getauxvalImpl(index: usize) callconv(.c) usize {504fn getauxvalImpl(index: usize) callconv(.c) usize {
505 @disableInstrumentation();
505 const auxv = elf_aux_maybe orelse return 0;506 const auxv = elf_aux_maybe orelse return 0;
506 var i: usize = 0;507 var i: usize = 0;
507 while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {508 while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {