Disable HWASan if UBSan is enabled

Test: `atest inputflinger_tests libinput_tests` does not crash
Bug: 251249010
Change-Id: Ic6bab1d2361ecfbad038acf9f124d4b9d4cee6d1
This commit is contained in:
Florian Mayer
2022-10-10 17:08:54 -07:00
parent 49b59385da
commit bb158a34c3

View File

@@ -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