Enhance coverage options to include those needed by Honggfuzz for coverage-driven fuzzing
Test: make m Bug: 64903541 Change-Id: Id5f10b6d7c122444f875134883f7c0a95d71e12d
This commit is contained in:
@@ -344,7 +344,7 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
|
||||
}
|
||||
|
||||
if Bool(sanitize.Properties.Sanitize.Coverage) {
|
||||
flags.CFlags = append(flags.CFlags, "-fsanitize-coverage=trace-pc-guard")
|
||||
flags.CFlags = append(flags.CFlags, "-fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp")
|
||||
}
|
||||
|
||||
if Bool(sanitize.Properties.Sanitize.Safestack) {
|
||||
|
Reference in New Issue
Block a user