Skip to content

Commit

Permalink
turn off ubsan for debug builds - c code has UB
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 24, 2024
1 parent 32ec703 commit 8d541d7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ pub fn build(b: *std.Build) !void {
if (ptr_bit_width == 32) "-m32" else "-m64",
"-Wall",
"-Wextra",
"-fsanitize=undefined",
"-fsanitize-trap=undefined",
"-fno-sanitize=undefined",
"-fno-sanitize-trap=undefined",
},
});
socketfuzz_lib.addIncludePath(AFLplusplus_inc_path);
Expand All @@ -335,8 +335,8 @@ pub fn build(b: *std.Build) !void {
if (ptr_bit_width == 32) "-m32" else "-m64",
"-Wall",
"-Wextra",
"-fsanitize=undefined",
"-fsanitize-trap=undefined",
"-fno-sanitize=undefined",
"-fno-sanitize-trap=undefined",
},
});
argvfuzz_lib.addIncludePath(AFLplusplus_inc_path);
Expand Down Expand Up @@ -628,8 +628,8 @@ const EXE_FLAGS = .{
"-Wno-pointer-sign",
"-Wno-pointer-arith",
"-Wno-variadic-macros",
"-fsanitize=undefined",
"-fsanitize-trap=undefined",
"-fno-sanitize=undefined",
"-fno-sanitize-trap=undefined",
"-DDOC_PATH=\"\"",
"-D_AFL_SPECIAL_PERFORMANCE",
};
Expand All @@ -645,8 +645,8 @@ const LLVM_EXE_C_FLAGS = .{
"-Wno-unused-result",
"-Wno-unused-function",
"-Wno-variadic-macros",
"-fsanitize=undefined",
"-fsanitize-trap=undefined",
"-fno-sanitize=undefined",
"-fno-sanitize-trap=undefined",
"-Wno-deprecated-copy-with-dtor",
"-DUSE_BINDIR=1",
"-DAFL_REAL_LD=\"lld\"",
Expand Down Expand Up @@ -689,7 +689,7 @@ const UTIL_LIB_FLAGS = .{
"-funroll-loops",
"-Wall",
"-Wno-pointer-sign",
"-fsanitize=undefined",
"-fsanitize-trap=undefined",
"-fno-sanitize=undefined",
"-fno-sanitize-trap=undefined",
"-D_FORTIFY_SOURCE=2",
};

0 comments on commit 8d541d7

Please sign in to comment.