Add support of SANITIZE_TARGET='address coverage' for fuzzing.

Also, add trace-cmp instrumentation to fuzz_test and host_fuzz_test.

Bug: 22850550
Change-Id: Ifff7b8be693ae991feb0a64e19439370a19b2748
This commit is contained in:
Ivan Krasin
2015-09-18 11:54:43 -07:00
parent 3ee9daac6a
commit 74b32b8dfc
6 changed files with 16 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
## Common flags for host fuzz tests are added.
################################################
LOCAL_CFLAGS += -fsanitize-coverage=edge,indirect-calls,8bit-counters
LOCAL_CFLAGS += -fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
LOCAL_STATIC_LIBRARIES += libLLVMFuzzer
include $(BUILD_HOST_EXECUTABLE)