Merge "Enhance coverage options to include those needed by Honggfuzz for coverage-driven fuzzing" am: 0d2a75510c
am: 98025a15ab
Change-Id: I03ebba4e16eb1f59b278ac53b0e5eccb7e111d61
This commit is contained in:
commit
1e9943c392
3 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@ ifneq ($(filter coverage,$(my_sanitize)),)
|
|||
ifeq ($(filter address,$(my_sanitize)),)
|
||||
$(error $(LOCAL_PATH): $(LOCAL_MODULE): Use of 'coverage' also requires 'address')
|
||||
endif
|
||||
my_cflags += -fsanitize-coverage=trace-pc-guard
|
||||
my_cflags += -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp
|
||||
my_sanitize := $(filter-out coverage,$(my_sanitize))
|
||||
endif
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ ifdef LOCAL_SDK_VERSION
|
|||
$(error $(LOCAL_PATH): $(LOCAL_MODULE): NDK fuzz tests are not supported.)
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard
|
||||
LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp
|
||||
LOCAL_STATIC_LIBRARIES += libFuzzer
|
||||
|
||||
ifdef LOCAL_MODULE_PATH
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
################################################
|
||||
$(call record-module-type,HOST_FUZZ_TEST)
|
||||
|
||||
LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard
|
||||
LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp
|
||||
LOCAL_STATIC_LIBRARIES += libLLVMFuzzer
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
|
Loading…
Reference in a new issue