Comment
The patch only alters Chromium build configuration to disable a few compiler/sanitizer flags by replacing their conditions with `false` or an empty list. This is a build-behavior change, not an execution or packaging change: it does not add network access, scripts, privilege escalation, persistence, or bundled binaries. The main impact is reduced diagnostics/sanitizer coverage on affected targets, which could hide some classes of bugs but is not itself a security backdoor. No high-risk supply-chain or install-time concerns are present in this diff.
@@ -1,29 +1,30 @@
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
-index f977c9fed76e6f50c50351ca22128e8c8c8897b1..81460f3591b734f3354a6f9ac7bb0990e5b28889 100644
+index 7df3e18c4c..1d253318a6 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
-@@ -589,7 +589,7 @@ config("compiler") {
- # Flags for diagnostics.
+@@ -578,7 +578,7 @@ config("compiler") {
cflags += [ "-fcolor-diagnostics" ]
- if (!is_win) {
-- cflags += [ "-fdiagnostics-show-inlining-chain" ]
-+ cflags += [ ]
- } else {
- # Combine after https://github.com/llvm/llvm-project/pull/192241
- cflags += [ "/clang:-fdiagnostics-show-inlining-chain" ]
-@@ -1911,7 +1911,7 @@ config("clang_warning_suppression") {
+ if (!is_wasm) {
+ if (!is_win) {
+- cflags += [ "-fdiagnostics-show-inlining-chain" ]
++ cflags += [ ]
+ } else {
+ # Combine after https://github.com/llvm/llvm-project/pull/192241
+ cflags += [ "/clang:-fdiagnostics-show-inlining-chain" ]
+@@ -1578,7 +1578,7 @@ config("clang_warning_suppression") {
# See also: https://crbug.com/40891132#comment10
ubsan_hardening("c_array_bounds") {
sanitizer = "array-bounds"
-- condition = !(is_asan && target_cpu == "x86")
+- condition = !(is_asan && target_cpu == "x86") && !is_wasm
+ condition = false
# Because we've enabled array-bounds sanitizing we also want to suppress
# the related warning about "unsafe-buffer-usage-in-static-sized-array",
-@@ -1925,6 +1925,7 @@ ubsan_hardening("c_array_bounds") {
+@@ -1592,7 +1592,7 @@ ubsan_hardening("c_array_bounds") {
# `NOTREACHED()` at the end of such functions.
ubsan_hardening("return") {
sanitizer = "return"
+- condition = !is_wasm
+ condition = false
}