~chromium-team/chromium-browser/bionic-stable

« back to all changes in this revision

Viewing changes to debian/patches/suppress-newer-clang-warning-flags.patch

  • Committer: Olivier Tilloy
  • Date: 2022-08-30 18:54:40 UTC
  • mfrom: (1349.1.296 bionic-beta)
  • Revision ID: olivier.tilloy@canonical.com-20220830185440-vuc1ochqxe977lfi
* Upstream release: 105.0.5195.52
  - CVE-2022-3038: Use after free in Network Service.
  - CVE-2022-3039: Use after free in WebSQL.
  - CVE-2022-3040: Use after free in Layout.
  - CVE-2022-3041: Use after free in WebSQL.
  - CVE-2022-3042: Use after free in PhoneHub.
  - CVE-2022-3043: Heap buffer overflow in Screen Capture.
  - CVE-2022-3044: Inappropriate implementation in Site Isolation.
  - CVE-2022-3045: Insufficient validation of untrusted input in V8.
  - CVE-2022-3046: Use after free in Browser Tag.
  - CVE-2022-3047: Insufficient policy enforcement in Extensions API.
  - CVE-2022-3048: Inappropriate implementation in Chrome OS lockscreen.
  - CVE-2022-3049: Use after free in SplitScreen.
  - CVE-2022-3050: Heap buffer overflow in WebUI.
  - CVE-2022-3051: Heap buffer overflow in Exosphere.
  - CVE-2022-3052: Heap buffer overflow in Window Manager.
  - CVE-2022-3053: Inappropriate implementation in Pointer Lock.
  - CVE-2022-3054: Insufficient policy enforcement in DevTools.
  - CVE-2022-3055: Use after free in Passwords.
  - CVE-2022-3056: Insufficient policy enforcement in Content Security Policy.
  - CVE-2022-3057: Inappropriate implementation in iframe Sandbox.
  - CVE-2022-3058: Use after free in Sign-In Flow.
* debian/patches/allow-building-on-x86.patch: refreshed
* debian/patches/blink-math-constexpr.patch: removed, no longer needed
* debian/patches/build-no-invalid-constexpr-error.patch: added
* debian/patches/build-with-old-libva-missing-defines.patch: refreshed
* debian/patches/build-with-old-libva-no-av1.patch: refreshed
* debian/patches/configuration-directory.patch: refreshed
* debian/patches/linker-oom-armhf.patch: refreshed
* debian/patches/no-dirmd.patch: refreshed
* debian/patches/nodejs-fs-promises.patch: added
* debian/patches/partition-allocator-constexpr.patch: removed, no longer needed
* debian/patches/partition-allocator-constexpr2.patch: removed, no longer needed
* debian/patches/search-credit.patch: refreshed
* debian/patches/set-rpath-on-chromium-executables.patch: refreshed
* debian/patches/suppress-newer-clang-warning-flags.patch: refreshed
* debian/patches/use-clang-versioned.patch: refreshed
* debian/patches/widevine-other-locations: refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
--- a/build/config/compiler/BUILD.gn
6
6
+++ b/build/config/compiler/BUILD.gn
7
 
@@ -1255,7 +1255,6 @@ config("compiler_deterministic") {
 
7
@@ -1254,7 +1254,6 @@ config("compiler_deterministic") {
8
8
     } else {
9
9
       # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
10
10
       # and -fcoverage-compilation-dir=.
12
12
     }
13
13
     if (!is_win) {
14
14
       # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
15
 
@@ -1454,12 +1453,6 @@ config("default_warnings") {
 
15
@@ -1453,12 +1452,6 @@ config("default_warnings") {
16
16
       cflags += [ "-Wundeclared-selector" ]
17
17
     }
18
18
 
25
25
     if (!is_clang) {
26
26
       cflags_cc += [
27
27
         # See comment for -Wno-c++11-narrowing.
28
 
@@ -1525,11 +1518,6 @@ config("default_warnings") {
 
28
@@ -1524,11 +1517,6 @@ config("default_warnings") {
29
29
       cflags += [
30
30
         "-Wenum-compare-conditional",
31
31
 
37
37
         # Ignore warnings about MSVC optimization pragmas.
38
38
         # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
39
39
         "-Wno-ignored-pragma-optimize",
40
 
@@ -1537,15 +1525,12 @@ config("default_warnings") {
 
40
@@ -1536,7 +1524,6 @@ config("default_warnings") {
41
41
 
42
42
       if (!is_nacl) {
43
43
         # TODO(https://crbug.com/1300731) Clean up and enable.
44
44
-        cflags += [ "-Wno-unqualified-std-cast-call" ]
45
 
       }
46
 
 
47
 
       if (!is_nacl && !(is_chromeos ||
48
 
                         default_toolchain == "//build/toolchain/cros:target")) {
49
 
         # TODO(https://crbug.com/1322823): Remove flags once potential miscompile is investigated.
50
 
         cflags += [
51
 
-          "-Xclang",
52
 
-          "-no-opaque-pointers",
53
 
         ]
54
 
       }
55
 
 
56
 
@@ -1553,10 +1538,6 @@ config("default_warnings") {
 
45
 
 
46
         # Do not set the below flags if it's nacl as nacl-clang doesn't have the
 
47
         # patches that require these flags.
 
48
@@ -1555,10 +1542,6 @@ config("default_warnings") {
57
49
         # TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
58
50
         cflags += [ "-Wno-deprecated-copy" ]
59
51
       }
62
54
-        cflags += [ "-Wmax-tokens" ]
63
55
-      }
64
56
     }
65
 
   }
66
 
 }
67
 
@@ -1726,9 +1707,6 @@ config("no_chromium_code") {
 
57
 
 
58
     cflags += [ "-Wno-invalid-constexpr" ]
 
59
@@ -1731,9 +1714,6 @@ config("no_chromium_code") {
68
60
     ]
69
61
     if (!is_nacl) {
70
62
       cflags += [
76
68
       ]
77
69
--- a/third_party/angle/BUILD.gn
78
70
+++ b/third_party/angle/BUILD.gn
79
 
@@ -223,9 +223,6 @@ config("extra_warnings") {
 
71
@@ -247,9 +247,6 @@ config("extra_warnings") {
80
72
       "-Wtautological-type-limit-compare",
81
73
       "-Wundefined-reinterpret-cast",
82
74
       "-Wunneeded-internal-declaration",
99
91
     }
100
92
--- a/third_party/angle/src/libANGLE/renderer/vulkan/BUILD.gn
101
93
+++ b/third_party/angle/src/libANGLE/renderer/vulkan/BUILD.gn
102
 
@@ -275,8 +275,6 @@ angle_source_set("angle_vk_mem_alloc_wra
 
94
@@ -278,8 +278,6 @@ angle_source_set("angle_vk_mem_alloc_wra
103
95
     cflags_cc = [
104
96
       "-Wno-extra-semi-stmt",
105
97
       "-Wno-missing-field-initializers",
106
98
-      "-Wno-suggest-destructor-override",
107
99
-      "-Wno-suggest-override",
 
100
       "-Wno-inconsistent-missing-destructor-override",
108
101
     ]
109
102
   }
110
 
 }
111
103
--- a/third_party/nasm/BUILD.gn
112
104
+++ b/third_party/nasm/BUILD.gn
113
105
@@ -79,8 +79,6 @@ config("nasm_config") {