Disable ubsan diagnostics under HWASan.

This is a workaround for a compiler bug that makes this combination
extremely slow to build.

Bug: 191808836
Test: m net_test_btm_iso with SANITIZE_TARGET=hwaddress
Merged-In: Ide7436bbc564413cb2f29355ada5286976607205
Change-Id: Ide7436bbc564413cb2f29355ada5286976607205
(cherry picked from commit b15a564869dada75d78f72489fc50138cd314764)
This commit is contained in:
Evgenii Stepanov 2021-06-23 12:30:55 -07:00
parent a1aa7387f7
commit e57ca4ccc3
1 changed files with 5 additions and 0 deletions

View File

@ -485,6 +485,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
if Bool(s.Hwaddress) { if Bool(s.Hwaddress) {
s.Address = nil s.Address = nil
s.Thread = nil s.Thread = nil
// Disable ubsan diagnosic as a workaround for a compiler bug.
// TODO(b/191808836): re-enable.
s.Diag.Undefined = nil
s.Diag.Integer_overflow = nil
s.Diag.Misc_undefined = nil
} }
// TODO(b/131771163): CFI transiently depends on LTO, and thus Fuzzer is // TODO(b/131771163): CFI transiently depends on LTO, and thus Fuzzer is