@@ -491,7 +491,7 @@ pub fn build(b: *std.Build) !void {
491
491
});
492
492
socketfuzz_lib .addCSourceFile (.{
493
493
.file = AFLplusplus_utl_path .path (b , "socket_fuzzing/socketfuzz.c" ),
494
- .flags = &.{ if (ptr_bit_width == 32 ) "-m32" else "-m64" , "-Wall" , "-Wextra" },
494
+ .flags = &.{ if (ptr_bit_width == 32 ) "-m32" else "-m64" , "-Wall" , "-Wextra" , "-fno-sanitize=undefined" },
495
495
});
496
496
socketfuzz_lib .addIncludePath (AFLplusplus_inc_path );
497
497
socketfuzz_lib .linkLibC ();
@@ -511,7 +511,7 @@ pub fn build(b: *std.Build) !void {
511
511
});
512
512
argvfuzz_lib .addCSourceFile (.{
513
513
.file = AFLplusplus_utl_path .path (b , "argv_fuzzing/argvfuzz.c" ),
514
- .flags = &.{ if (ptr_bit_width == 32 ) "-m32" else "-m64" , "-Wall" , "-Wextra" },
514
+ .flags = &.{ if (ptr_bit_width == 32 ) "-m32" else "-m64" , "-Wall" , "-Wextra" , "-fno-sanitize=undefined" },
515
515
});
516
516
argvfuzz_lib .addIncludePath (AFLplusplus_inc_path );
517
517
argvfuzz_lib .linkLibC ();
@@ -575,6 +575,7 @@ const EXE_FLAGS = .{
575
575
"-Wno-pointer-sign" ,
576
576
"-Wno-pointer-arith" ,
577
577
"-Wno-variadic-macros" ,
578
+ "-fno-sanitize=undefined" ,
578
579
"-DDOC_PATH=\"\" " ,
579
580
"-D_AFL_SPECIAL_PERFORMANCE" ,
580
581
};
@@ -590,6 +591,7 @@ const LLVM_EXE_C_FLAGS = .{
590
591
"-Wno-unused-result" ,
591
592
"-Wno-unused-function" ,
592
593
"-Wno-variadic-macros" ,
594
+ "-fno-sanitize=undefined" ,
593
595
"-Wno-deprecated-copy-with-dtor" ,
594
596
"-DUSE_BINDIR=1" ,
595
597
"-DAFL_REAL_LD=\" lld\" " ,
@@ -632,5 +634,6 @@ const UTIL_LIB_FLAGS = .{
632
634
"-funroll-loops" ,
633
635
"-Wall" ,
634
636
"-Wno-pointer-sign" ,
637
+ "-fno-sanitize=undefined" ,
635
638
"-D_FORTIFY_SOURCE=2" ,
636
639
};
0 commit comments