Skip to content

Commit 05c9ac2

Browse files
authored
suricata: fix rust+C MSAN build (#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 dcb3b18 commit 05c9ac2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/suricata/build.sh

+3
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)