Skip to content

Commit 0ba77ec

Browse files
committed
disable getauxvalImpl instrumentation as libfuzzer's allocator may need to call it
1 parent 68700e5 commit 0ba77ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/os/linux.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ pub const getauxval = if (extern_getauxval) struct {
523523
}.getauxval else getauxvalImpl;
524524

525525
fn getauxvalImpl(index: usize) callconv(.c) usize {
526+
@disableInstrumentation();
526527
const auxv = elf_aux_maybe orelse return 0;
527528
var i: usize = 0;
528529
while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {

0 commit comments

Comments
 (0)