Skip to content

Commit 780a175

Browse files
upx: fix build (#14988)
Disable UBSan for compiler sanity check to avoid overflow issues.
1 parent 2692c26 commit 780a175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/upx/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ git apply --ignore-space-change --ignore-whitespace $SRC/upx/fuzzers/build.pa
2323
# e.g.
2424
mkdir -p build/debug
2525
cd build/debug
26-
cmake ../..
26+
# Disable UBSan for the compiler sanity check that intentionally tests overflow
27+
cmake ../.. -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fno-sanitize=signed-integer-overflow" -DCMAKE_C_FLAGS="${CFLAGS} -fno-sanitize=signed-integer-overflow"
2728

2829
for fuzzer in $(find $SRC -name '*_fuzzer.cpp'); do
2930
fuzz_basename=$(basename -s .cpp $fuzzer)

0 commit comments

Comments
 (0)