Don't enable diagnostics for CFI when setting the CFI sanitizer.
The SetSanitizer() method in cc/sanitize.go was also enabling diagnostics for CFI when invoked from the sanitizer mutator. We shouldn't be doing this, so this CL disables that. Bug: 79785496 Test: strings libziparchive.so | grep 'ubsan' Change-Id: Iffe0d4e9c333ac5dfbec3f48e381c232ce5d4463
This commit is contained in:
parent
86a60ae6fa
commit
05b002dea0
|
@ -560,7 +560,6 @@ func (sanitize *sanitize) SetSanitizer(t sanitizerType, b bool) {
|
|||
sanitize.Properties.Sanitize.Integer_overflow = boolPtr(b)
|
||||
case cfi:
|
||||
sanitize.Properties.Sanitize.Cfi = boolPtr(b)
|
||||
sanitize.Properties.Sanitize.Diag.Cfi = boolPtr(b)
|
||||
default:
|
||||
panic(fmt.Errorf("unknown sanitizerType %d", t))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue