Skip to content

Commit

Permalink
suricata: fix rust+C MSAN build
Browse files Browse the repository at this point in the history
Rust MSAN produces false positives when C clang version is not
up to the latest version.
See rust-lang/rust#107149
  • Loading branch information
catenacyber committed Jan 21, 2023
1 parent ed7eb5e commit 3fca5d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/suricata/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ then
make -j$(nproc) all
make -j$(nproc) install
)
# Temporary workaround for https://github.com/rust-lang/rust/issues/107149
# until oss-fuzz clang is up to rustc clang (15.0.6).
export RUSTFLAGS="$RUSTFLAGS -Zsanitizer-memory-track-origins -Cllvm-args=-msan-eager-checks=0"
fi

(
Expand Down

0 comments on commit 3fca5d8

Please sign in to comment.