Skip to content

Commit 5e2cf19

Browse files
committed
fix(cfl): remove invalid -Z sanitizer=undefined from UBSan build
Rust's -Z sanitizer flag does not accept 'undefined' — valid values are address, memory, thread, leak, etc. UBSan is a C/C++ concept with no direct Rust equivalent. For the CFL UBSan job, build with --sanitizer none so the binary has no ASan instrumentation and bad_build_check passes, without attempting to set a non-existent Rust sanitizer. https://claude.ai/code/session_01EJLZKDtcF1RGdKx6TcUTQG
1 parent c276d6e commit 5e2cf19

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.clusterfuzzlite/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ SANITIZER="${SANITIZER:-address}"
77
if [ "$SANITIZER" = "address" ]; then
88
cargo +nightly fuzz build --release
99
elif [ "$SANITIZER" = "undefined" ]; then
10-
# cargo fuzz defaults to ASan; for UBSan we suppress that and inject UBSan
11-
# via RUSTFLAGS so the bad_build_check does not flag a sanitizer mismatch.
12-
RUSTFLAGS="-Z sanitizer=undefined" \
13-
cargo +nightly fuzz build --sanitizer none --release
10+
# Rust has no UBSan equivalent via -Z sanitizer.
11+
# Build without any sanitizer so bad_build_check sees no ASan instrumentation.
12+
cargo +nightly fuzz build --sanitizer none --release
1413
else
1514
cargo +nightly fuzz build --release
1615
fi

0 commit comments

Comments
 (0)