oss-fuzz/projects/cras
Li-Yu Yu e5e1b3db9c
cras: Use --enable-fuzzer to pass -DHAVE_FUZZER=1 (#9308)
https://crrev.com/c/4123919 caused -Werror,-Wmacro-redefined, due to
./configure passing -DHAVE_FUZZER=0 when not configured with
--enable-fuzzer.

To fix that:
1. Use ./configure --enable-fuzzer instead of -DHAVE_FUZZER to avoid
multiple definitions of the macro.
2. The default make rule would try to build the fuzzer itself. So
instead we selectively build just the cras binary, which is enough to
produce libcrasserver.a and libcras_rust.a.
3. The build dependency of cras_dbus_bindings.h in the Makefile is not
properly specified, so we build it manually first.

Fixes https://crbug.com/oss-fuzz/54641.
2022-12-29 04:09:04 -08:00
..
Dockerfile cras: Fix alsa-lib download (#9177) 2022-12-09 21:45:11 +00:00
build.sh cras: Use --enable-fuzzer to pass -DHAVE_FUZZER=1 (#9308) 2022-12-29 04:09:04 -08:00
project.yaml [MSAN] Enable memory sanitizer build (#8094) 2022-07-28 12:18:18 +01:00