mirror of https://github.com/google/oss-fuzz.git
[MSAN] Enable memory sanitizer build (#8094)
* CRAS: Use CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu" In oss-fuzz, to build with MemorySanitizer, Rust part needs to use ``` CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu" ``` to resolve libc `MemorySanitizer: use-of-uninitialized-value` error according to https://github.com/google/oss-fuzz/issues/3469. * CRAS: Add new member to auto_ccs Co-authored-by: paulhsia <paulhsia@google.com>
This commit is contained in:
parent
6945f4c77c
commit
06efe97ba0
|
@ -24,9 +24,10 @@
|
||||||
cd ${SRC}/adhd/cras
|
cd ${SRC}/adhd/cras
|
||||||
./git_prepare.sh
|
./git_prepare.sh
|
||||||
mkdir -p ${WORK}/build && cd ${WORK}/build
|
mkdir -p ${WORK}/build && cd ${WORK}/build
|
||||||
|
export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"
|
||||||
CFLAGS="${CFLAGS} -DHAVE_FUZZER" ${SRC}/adhd/cras/configure --disable-featured
|
CFLAGS="${CFLAGS} -DHAVE_FUZZER" ${SRC}/adhd/cras/configure --disable-featured
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
cp ${WORK}/build/src/server/rust/target/release/libcras_rust.a /usr/local/lib
|
cp ${WORK}/build/src/server/rust/target/${CARGO_BUILD_TARGET}/release/libcras_rust.a /usr/local/lib
|
||||||
|
|
||||||
CRAS_FUZZERS="rclient_message cras_hfp_slc cras_fl_media_fuzzer"
|
CRAS_FUZZERS="rclient_message cras_hfp_slc cras_fl_media_fuzzer"
|
||||||
|
|
||||||
|
|
|
@ -14,5 +14,10 @@ auto_ccs:
|
||||||
- "hunghsienchen@chromium.org"
|
- "hunghsienchen@chromium.org"
|
||||||
- "htcheong@chromium.org"
|
- "htcheong@chromium.org"
|
||||||
- "jrwu@chromium.org"
|
- "jrwu@chromium.org"
|
||||||
builds_per_day: 2
|
- "michelleyswang@google.com"
|
||||||
|
sanitizers:
|
||||||
|
- address
|
||||||
|
- memory
|
||||||
|
- undefined
|
||||||
|
builds_per_day: 4
|
||||||
main_repo: 'https://chromium.googlesource.com/chromiumos/third_party/adhd'
|
main_repo: 'https://chromium.googlesource.com/chromiumos/third_party/adhd'
|
||||||
|
|
Loading…
Reference in New Issue