Skip to content

Commit 2b78333

Browse files
committed
fix(cfl): drop UBSan sanitizer — Rust has no -Z sanitizer=undefined
Rust's unstable -Z sanitizer flag accepts address, memory, thread, and leak, but not 'undefined'. UBSan is a C/C++ concept; there is no Rust equivalent that satisfies OSS-Fuzz bad_build_check for the undefined sanitizer job. Remove 'undefined' from project.yaml sanitizers list and the cflite_pr.yml matrix, and simplify build.sh back to a single cargo fuzz build --release call (address-only). https://claude.ai/code/session_01EJLZKDtcF1RGdKx6TcUTQG
1 parent 5e2cf19 commit 2b78333

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

.clusterfuzzlite/build.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#!/bin/bash -eu
22

33
cd "$SRC"/project
4-
5-
SANITIZER="${SANITIZER:-address}"
6-
7-
if [ "$SANITIZER" = "address" ]; then
8-
cargo +nightly fuzz build --release
9-
elif [ "$SANITIZER" = "undefined" ]; then
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
13-
else
14-
cargo +nightly fuzz build --release
15-
fi
16-
4+
cargo +nightly fuzz build --release
175
find fuzz/target -maxdepth 4 -name 'fuzz_*' -executable \
186
-not -name '*.d' -exec cp {} "$OUT"/ \;

.clusterfuzzlite/project.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: rust
22
sanitizers:
33
- address
4-
- undefined

.github/workflows/cflite_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
sanitizer: [address, undefined]
14+
sanitizer: [address]
1515
steps:
1616
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1717
- uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1

0 commit comments

Comments
 (0)