- Updates the fuzzer builds to use SANITIZE_TARGET='fuzzer' instead of
'coverage'.
- Removed an old dependency that made fuzzer builds without ASan
an error.
- Fixed up the build flags to allow fuzzers to be built. Previously, the
coverage flags were manually provided. As the toolchain has moved on,
these flags are no longer compatible with libFuzzer, and so I've updated
them to use the correct, compatible flags.
Bug: 121042685
Test: With all patches in the bug merged, build a fuzzer using
'SANITIZE_TARGET=fuzzer mmma <your_fuzzer>'.
Change-Id: I86e6a26d27c22b3622cf6ea8760f502f607df6f0
Old: /data/nativetest64/fuzzers/ID3_fuzzer/ID3_fuzzer
New: /data/nativetest64/fuzzers/libFuzzer/ID3_fuzzer
This allows having both the honggfuzz and libFuzzer variants built
and flashed at the same time. It also means we don't have to rely
on 'strings' to determine which type a given fuzzer is.
Test: SANITIZE_TARGET=address mmma vendor/google/tools/security/fuzzers/libFuzzer/sanitycheck_fuzzer \
&& test -e $ANDROID_PRODUCT_OUT/data/nativetest64/fuzzers/libFuzzer/sanitycheck_fuzzer
Change-Id: Ic0899fe8f471cc63d11d810e5fd16b6c6f621bc1
This way honggfuzz is rebuilt if it has changed, when building a fuzzer.
Separately, keeping the symbols in the fuzzer binary is useful for crash triage.
Change-Id: I2fc5ca64ccf66d084158580da74e5397aa61c250
Update the fuzz_test makefile to link against the new libFuzzer
library and update the coverage flags to the new version.
Test: built a fuzzer and verified correct linking.
Change-Id: Ie6e6da9a202a258abf805dbdc8cdd3490fcb2406
This CL changes BUILD_FUZZ_TEST to generate binaries in a
sub-directory called fuzzers/ under the nativetest directory. This
allows fuzzers to be distinguished from the other native tests and
makes it easier to perform automated fuzz-testing.
Bug: 25714111
Change-Id: I452e43f15728ec9168dd44776b6ffcea6037fa7f
Creates a build_system_stats.txt build artifact that contains statistics
on how many BUILD_* modules are defined in a build. Also writes out
information about the Soong module types sent from the Soong build.
Merged-In: Iaf0c7062f542dc6942b5349854f3d49267cac4a5
Change-Id: Iaf0c7062f542dc6942b5349854f3d49267cac4a5