summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/glade/glade/CVE-2020-36774.patch54
-rw-r--r--meta-oe/recipes-devtools/glade/glade_3.36.0.bb1
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/glade/glade/CVE-2020-36774.patch b/meta-oe/recipes-devtools/glade/glade/CVE-2020-36774.patch
new file mode 100644
index 0000000000..ae44862ccf
--- /dev/null
+++ b/meta-oe/recipes-devtools/glade/glade/CVE-2020-36774.patch
@@ -0,0 +1,54 @@
1From 8f1ed202ad21c787ec406f531905b4cda64fb13c Mon Sep 17 00:00:00 2001
2From: Juan Pablo Ugarte <juanpablougarte@gmail.com>
3Date: Fri, 2 Oct 2020 16:08:23 -0300
4Subject: [PATCH] GladeGtkBox: fix glade_gtk_box_post_create
5
6Some widgets with contruct properties like GtkMessageDialog get
7rebuilt right after they are created on project loading so we need
8to check glade_project_is_loading() intead of GLADE_CREATE_LOAD
9and use the object ad the connect data to make sure it gets disconected
10if it was the object being rebuilt
11
12Fix issue #479 "Glade 3.36.0 segfaults when opening a file"
13
14CVE: CVE-2020-36774
15Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glade/-/commit/7acdd3c6f6934f47b8974ebc2190a59ea5d2ed17]
16
17Signed-off-by: Peng Zhang <peng.zhang1.cn@windriver.com>
18---
19 plugins/gtk+/glade-gtk-box.c | 8 ++++----
20 1 file changed, 4 insertions(+), 4 deletions(-)
21
22diff --git a/plugins/gtk+/glade-gtk-box.c b/plugins/gtk+/glade-gtk-box.c
23index 1153c957..c995524e 100644
24--- a/plugins/gtk+/glade-gtk-box.c
25+++ b/plugins/gtk+/glade-gtk-box.c
26@@ -57,9 +57,9 @@ glade_gtk_box_create_editable (GladeWidgetAdaptor *adaptor,
27 }
28
29 static void
30-glade_gtk_box_parse_finished (GladeProject *project, GladeWidget *gbox)
31+glade_gtk_box_parse_finished (GladeProject *project, GObject *box)
32 {
33- GObject *box = glade_widget_get_object (gbox);
34+ GladeWidget *gbox = glade_widget_get_from_gobject (box);
35
36 glade_widget_property_set (gbox, "use-center-child",
37 gtk_box_get_center_widget (GTK_BOX (box)) != NULL);
38@@ -86,11 +86,11 @@ glade_gtk_box_post_create (GladeWidgetAdaptor *adaptor,
39 g_signal_connect (G_OBJECT (gwidget), "configure-end",
40 G_CALLBACK (glade_gtk_box_configure_end), container);
41
42- if (reason == GLADE_CREATE_LOAD)
43+ if (glade_project_is_loading (project))
44 {
45 g_signal_connect_object (project, "parse-finished",
46 G_CALLBACK (glade_gtk_box_parse_finished),
47- gwidget, 0);
48+ container, 0);
49 }
50 }
51
52--
532.34.1
54
diff --git a/meta-oe/recipes-devtools/glade/glade_3.36.0.bb b/meta-oe/recipes-devtools/glade/glade_3.36.0.bb
index 9dccd9b941..3645de3cc3 100644
--- a/meta-oe/recipes-devtools/glade/glade_3.36.0.bb
+++ b/meta-oe/recipes-devtools/glade/glade_3.36.0.bb
@@ -17,6 +17,7 @@ ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
17 17
18SRC_URI = "${GNOME_MIRROR}/glade/3.36/glade-${PV}.tar.xz \ 18SRC_URI = "${GNOME_MIRROR}/glade/3.36/glade-${PV}.tar.xz \
19 file://remove-yelp-help-rules-var.patch \ 19 file://remove-yelp-help-rules-var.patch \
20 file://CVE-2020-36774.patch \
20 " 21 "
21SRC_URI[sha256sum] = "19b546b527cc46213ccfc8022d49ec57e618fe2caa9aa51db2d2862233ea6f08" 22SRC_URI[sha256sum] = "19b546b527cc46213ccfc8022d49ec57e618fe2caa9aa51db2d2862233ea6f08"
22 23