diff options
| author | 2022-10-10 17:08:54 -0700 | |
|---|---|---|
| committer | 2022-10-10 17:11:30 -0700 | |
| commit | bb158a34c3c8dc040f9eb649770addf02b38996f (patch) | |
| tree | c4a96c080eed1404c571c2aca14122594af091d0 | |
| parent | 49b59385da1cfe7b56c68d6418e7a18b7997a618 (diff) | |
Disable HWASan if UBSan is enabled
Test: `atest inputflinger_tests libinput_tests` does not crash
Bug: 251249010
Change-Id: Ic6bab1d2361ecfbad038acf9f124d4b9d4cee6d1
| -rw-r--r-- | cc/sanitize.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go index 0b47f0e6d..66dfef57b 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -564,6 +564,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) { s.Scudo = nil } + if Bool(s.Undefined) || Bool(s.All_undefined) || len(s.Misc_undefined) > 0 { + // TODO(b/251249010): re-enable Hwaddress with UBSan once fixed. + s.Hwaddress = nil + } + if Bool(s.Hwaddress) { s.Address = nil s.Thread = nil |