Skip to content

Commit

Permalink
suricata: fix rust+C MSAN build (google#9478)
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

Will fix
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55239&q=label%3AProj-suricata
and such

Should the fix be generic for other projects ?
  • Loading branch information
catenacyber authored and eamonnmcmanus committed Mar 15, 2023
1 parent d8eabdb commit df71bcd
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 df71bcd

Please sign in to comment.