Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b15a5648 authored by Evgenii Stepanov's avatar Evgenii Stepanov
Browse files

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
Change-Id: Ide7436bbc564413cb2f29355ada5286976607205
parent 99fc06f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -485,6 +485,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
	if Bool(s.Hwaddress) {
		s.Address = 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