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 committed by Alex Rønne Petersen
parent f592674642
commit e739ba1bd9
No known key found for this signature in database

View File

@ -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) {