From c81f59f03e31d802783e9938fdd75c0c8aac8312 Mon Sep 17 00:00:00 2001 From: Kris Alder Date: Thu, 7 Jan 2021 20:57:23 +0000 Subject: [PATCH] add options for LibFuzzer, HWASan, and ASan to fuzz_config Bug: 176998722 Test: built fuzz target with these options specified, checked resulting config.json Change-Id: Id38668dd11e76eead4ec87bd225ba67e3b30b80d --- cc/fuzz.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cc/fuzz.go b/cc/fuzz.go index 6b17c48be..aa9038ae2 100644 --- a/cc/fuzz.go +++ b/cc/fuzz.go @@ -41,6 +41,12 @@ type FuzzConfig struct { // Specify who should be acknowledged for CVEs in the Android Security // Bulletin. Acknowledgement []string `json:"acknowledgement,omitempty"` + // Additional options to be passed to libfuzzer when run in Haiku. + Libfuzzer_options []string `json:"libfuzzer_options,omitempty"` + // Additional options to be passed to HWASAN when running on-device in Haiku. + Hwasan_options []string `json:"hwasan_options,omitempty"` + // Additional options to be passed to HWASAN when running on host in Haiku. + Asan_options []string `json:"asan_options,omitempty"` } func (f *FuzzConfig) String() string {