mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it
This commit is contained in:
parent
68700e5de1
commit
0ba77eca74
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue