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

Commit a58d01da authored by Florian Mayer's avatar Florian Mayer Committed by Gerrit Code Review
Browse files

Merge "[MTE] unset colliding sanitizers for mutators"

parents c63b7cf8 1bda2462
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -881,8 +881,12 @@ func (sanitize *sanitize) SetSanitizer(t SanitizerType, b bool) {
	switch t {
	case Asan:
		sanitize.Properties.Sanitize.Address = bPtr
		// For ASAN variant, we need to disable Memtag_stack
		sanitize.Properties.Sanitize.Memtag_stack = nil
	case Hwasan:
		sanitize.Properties.Sanitize.Hwaddress = bPtr
		// For HWAsan variant, we need to disable Memtag_stack
		sanitize.Properties.Sanitize.Memtag_stack = nil
	case tsan:
		sanitize.Properties.Sanitize.Thread = bPtr
	case intOverflow:
@@ -895,6 +899,7 @@ func (sanitize *sanitize) SetSanitizer(t SanitizerType, b bool) {
		sanitize.Properties.Sanitize.Memtag_heap = bPtr
	case Memtag_stack:
		sanitize.Properties.Sanitize.Memtag_stack = bPtr
		// We do not need to disable ASAN or HWASan here, as there is no Memtag_stack variant.
	case Fuzzer:
		sanitize.Properties.Sanitize.Fuzzer = bPtr
	default: