mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it
This commit is contained in:
parent
f592674642
commit
e739ba1bd9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user