Loading rust/sanitize.go +4 −5 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ type SanitizeProperties struct { } var fuzzerFlags = []string{ "-Z external-clangrt=true", "-C passes='sancov-module'", "--cfg fuzzing", Loading @@ -73,11 +75,13 @@ var fuzzerFlags = []string{ } var asanFlags = []string{ "-Z external-clangrt=true", "-Z sanitizer=address", } // See cc/sanitize.go's hwasanGlobalOptions for global hwasan options. var hwasanFlags = []string{ "-Z external-clangrt=true", "-Z sanitizer=hwaddress", "-C target-feature=+tagged-globals", Loading Loading @@ -203,11 +207,6 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) { s.Address = nil } // TODO: Remove once b/304507701 is resolved if Bool(s.Address) && ctx.Host() { s.Address = nil } // Memtag_heap is only implemented on AArch64. if ctx.Arch().ArchType != android.Arm64 || !ctx.Os().Bionic() { s.Memtag_heap = nil Loading Loading
rust/sanitize.go +4 −5 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ type SanitizeProperties struct { } var fuzzerFlags = []string{ "-Z external-clangrt=true", "-C passes='sancov-module'", "--cfg fuzzing", Loading @@ -73,11 +75,13 @@ var fuzzerFlags = []string{ } var asanFlags = []string{ "-Z external-clangrt=true", "-Z sanitizer=address", } // See cc/sanitize.go's hwasanGlobalOptions for global hwasan options. var hwasanFlags = []string{ "-Z external-clangrt=true", "-Z sanitizer=hwaddress", "-C target-feature=+tagged-globals", Loading Loading @@ -203,11 +207,6 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) { s.Address = nil } // TODO: Remove once b/304507701 is resolved if Bool(s.Address) && ctx.Host() { s.Address = nil } // Memtag_heap is only implemented on AArch64. if ctx.Arch().ArchType != android.Arm64 || !ctx.Os().Bionic() { s.Memtag_heap = nil Loading