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

This commit is contained in:
tjog 2025-05-03 23:33:26 +02:00
parent 68700e5de1
commit 0ba77eca74
No known key found for this signature in database

View file

@ -523,6 +523,7 @@ pub const getauxval = if (extern_getauxval) struct {
}.getauxval else getauxvalImpl; }.getauxval else getauxvalImpl;
fn getauxvalImpl(index: usize) callconv(.c) usize { fn getauxvalImpl(index: usize) callconv(.c) usize {
@disableInstrumentation();
const auxv = elf_aux_maybe orelse return 0; const auxv = elf_aux_maybe orelse return 0;
var i: usize = 0; var i: usize = 0;
while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) { while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {