Merge "Disable HWASan if UBSan is enabled"

This commit is contained in:
Treehugger Robot 2022-10-11 02:51:50 +00:00 committed by Gerrit Code Review
commit 922875d187

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