Suricata rust clang16 (#10019)

Meant to fix
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=57490&q=label%3AProj-suricata

Cf https://github.com/rust-lang/rust/issues/107149

When will oss-fuzz use clang 16 for C ?
This commit is contained in:
Catena cyber 2023-04-04 11:13:55 +02:00 committed by GitHub
parent 31ed0c8b0a
commit bf6ebb8d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,9 @@ RUN git clone --depth=1 https://github.com/catenacyber/fuzzpcap
ADD https://rules.emergingthreats.net/open/suricata/emerging.rules.zip emerging.rules.zip
# until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
RUN rustup install nightly-2023-03-24
RUN rustup component add rust-src --toolchain nightly-2023-03-24-x86_64-unknown-linux-gnu
RUN cargo install --force cbindgen
RUN git clone --depth 1 https://github.com/OISF/suricata.git suricata

View File

@ -15,6 +15,9 @@
#
################################################################################
# until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
rustup default nightly-2023-03-24
# build dependencies statically
if [ "$SANITIZER" = "memory" ]
then