Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
# `fuzz/` and stage each binary into $OUT. Run by `compile` inside the
# base-builder-rust image (see .clusterfuzzlite/Dockerfile).
cd "$SRC/my-lang"
cargo +nightly fuzz build -O
# Build for the sanitizer OSS-Fuzz requests (defaults to address). NOTE: only
# `address` is configured — Rust/cargo-fuzz cannot emit a valid UBSan binary
# (it links ASan regardless), which `bad_build_check` rejects; see project.yaml.
cargo +nightly fuzz build -O --sanitizer "${SANITIZER:-address}"

release="$SRC/my-lang/fuzz/target/x86_64-unknown-linux-gnu/release"
for target in fuzz/fuzz_targets/*.rs; do
Expand Down
5 changes: 4 additions & 1 deletion .clusterfuzzlite/project.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
homepage: "https://github.com/hyperpolymath/my-lang"
language: rust
main_repo: "https://github.com/hyperpolymath/my-lang"
# Only ASan: Rust/cargo-fuzz does not produce a valid UndefinedBehaviorSanitizer
# build (it links ASan regardless), which OSS-Fuzz's `bad_build_check` rejects
# ("UBSan build ... seems to be compiled with ASan"). ASan is the supported,
# meaningful sanitizer for Rust fuzzing here.
sanitizers:
- address
- undefined
4 changes: 3 additions & 1 deletion .github/workflows/cflite_batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined]
# ASan only: Rust/cargo-fuzz can't emit a valid UBSan binary (links ASan
# regardless), so `undefined` failed bad_build_check. See project.yaml.
sanitizer: [address]
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cflite_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined]
# ASan only: Rust/cargo-fuzz can't emit a valid UBSan binary (links ASan
# regardless), so `undefined` failed bad_build_check. See project.yaml.
sanitizer: [address]
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
Expand Down
Loading