Linux: Fix cfi-icall failure in atk_util_auralinux_gtk2.cc (issue #2472)
This commit is contained in:
parent
7139f01103
commit
cf5b322efc
|
@ -331,6 +331,9 @@ patches = [
|
||||||
# https://bitbucket.org/chromiumembedded/cef/issues/2256
|
# https://bitbucket.org/chromiumembedded/cef/issues/2256
|
||||||
#
|
#
|
||||||
# Linux: Fix GTK2 compile errors.
|
# Linux: Fix GTK2 compile errors.
|
||||||
|
#
|
||||||
|
# Linux: Fix cfi-icall failure in atk_util_auralinux_gtk2.cc.
|
||||||
|
# https://bugs.chromium.org/p/chromium/issues/detail?id=863090
|
||||||
'name': 'linux_build',
|
'name': 'linux_build',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
|
diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
|
||||||
index 295dabff4be3..e27ae2342235 100644
|
index 295dabf..e27ae23 100644
|
||||||
--- build/config/compiler/BUILD.gn
|
--- build/config/compiler/BUILD.gn
|
||||||
+++ build/config/compiler/BUILD.gn
|
+++ build/config/compiler/BUILD.gn
|
||||||
@@ -152,7 +152,7 @@ declare_args() {
|
@@ -152,7 +152,7 @@ declare_args() {
|
||||||
|
@ -12,7 +12,7 @@ index 295dabff4be3..e27ae2342235 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git chrome/browser/ui/libgtkui/gtk_util.cc chrome/browser/ui/libgtkui/gtk_util.cc
|
diff --git chrome/browser/ui/libgtkui/gtk_util.cc chrome/browser/ui/libgtkui/gtk_util.cc
|
||||||
index 96f8c0e71472..49c462b37e12 100644
|
index 96f8c0e..49c462b 100644
|
||||||
--- chrome/browser/ui/libgtkui/gtk_util.cc
|
--- chrome/browser/ui/libgtkui/gtk_util.cc
|
||||||
+++ chrome/browser/ui/libgtkui/gtk_util.cc
|
+++ chrome/browser/ui/libgtkui/gtk_util.cc
|
||||||
@@ -237,6 +237,7 @@ float GetDeviceScaleFactor() {
|
@@ -237,6 +237,7 @@ float GetDeviceScaleFactor() {
|
||||||
|
@ -61,7 +61,7 @@ index 96f8c0e71472..49c462b37e12 100644
|
||||||
ScopedStyleContext child_context(gtk_style_context_new());
|
ScopedStyleContext child_context(gtk_style_context_new());
|
||||||
gtk_style_context_set_path(child_context, path);
|
gtk_style_context_set_path(child_context, path);
|
||||||
diff --git chrome/browser/ui/libgtkui/native_theme_gtk2.cc chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
diff --git chrome/browser/ui/libgtkui/native_theme_gtk2.cc chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
||||||
index b24ff4b95f97..49e80717b1d6 100644
|
index b24ff4b9..49e8071 100644
|
||||||
--- chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
--- chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
||||||
+++ chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
+++ chrome/browser/ui/libgtkui/native_theme_gtk2.cc
|
||||||
@@ -163,6 +163,8 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
|
@@ -163,6 +163,8 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
|
||||||
|
@ -73,3 +73,15 @@ index b24ff4b95f97..49e80717b1d6 100644
|
||||||
case kColorId_LabelEnabledColor:
|
case kColorId_LabelEnabledColor:
|
||||||
return GetTextColor(GetEntry(), NORMAL);
|
return GetTextColor(GetEntry(), NORMAL);
|
||||||
case kColorId_LabelDisabledColor:
|
case kColorId_LabelDisabledColor:
|
||||||
|
diff --git ui/accessibility/platform/atk_util_auralinux_gtk2.cc ui/accessibility/platform/atk_util_auralinux_gtk2.cc
|
||||||
|
index ac11b56..6355d02 100644
|
||||||
|
--- ui/accessibility/platform/atk_util_auralinux_gtk2.cc
|
||||||
|
+++ ui/accessibility/platform/atk_util_auralinux_gtk2.cc
|
||||||
|
@@ -48,6 +48,7 @@ GnomeAccessibilityModuleInitFunc GetAccessibilityModuleInitFunc() {
|
||||||
|
return init_func;
|
||||||
|
}
|
||||||
|
|
||||||
|
+NO_SANITIZE("cfi-icall")
|
||||||
|
void FinishAccessibilityInitOnMainThread(
|
||||||
|
GnomeAccessibilityModuleInitFunc init_func) {
|
||||||
|
if (!init_func) {
|
||||||
|
|
Loading…
Reference in New Issue