Skip to content

Commit df71bcd

Browse files
catenacybereamonnmcmanus
authored andcommitted
suricata: fix rust+C MSAN build (google#9478)
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 ?
1 parent d8eabdb commit df71bcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/suricata/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ then
2525
make -j$(nproc) all
2626
make -j$(nproc) install
2727
)
28+
# Temporary workaround for https://github.com/rust-lang/rust/issues/107149
29+
# until oss-fuzz clang is up to rustc clang (15.0.6).
30+
export RUSTFLAGS="$RUSTFLAGS -Zsanitizer-memory-track-origins -Cllvm-args=-msan-eager-checks=0"
2831
fi
2932

3033
(

0 commit comments

Comments
 (0)