summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/epiphany
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/epiphany')
-rw-r--r--meta/recipes-gnome/epiphany/epiphany_3.34.4.bb4
-rw-r--r--meta/recipes-gnome/epiphany/files/CVE-2022-29536.patch46
2 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-gnome/epiphany/epiphany_3.34.4.bb b/meta/recipes-gnome/epiphany/epiphany_3.34.4.bb
index ddb4c2794f..f43bfd6a67 100644
--- a/meta/recipes-gnome/epiphany/epiphany_3.34.4.bb
+++ b/meta/recipes-gnome/epiphany/epiphany_3.34.4.bb
@@ -1,4 +1,7 @@
1SUMMARY = "WebKit based web browser for GNOME" 1SUMMARY = "WebKit based web browser for GNOME"
2DESCRIPTION = "Epiphany is an open source web browser for the Linux desktop environment. \
3It provides a simple and easy-to-use internet browsing experience."
4HOMEPAGE = "https://wiki.gnome.org/Apps/Web"
2BUGTRACKER = "https://gitlab.gnome.org/GNOME/epiphany" 5BUGTRACKER = "https://gitlab.gnome.org/GNOME/epiphany"
3LICENSE = "GPLv3+" 6LICENSE = "GPLv3+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
@@ -13,6 +16,7 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl"
13 16
14SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ 17SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \
15 file://0002-help-meson.build-disable-the-use-of-yelp.patch \ 18 file://0002-help-meson.build-disable-the-use-of-yelp.patch \
19 file://CVE-2022-29536.patch \
16 " 20 "
17SRC_URI[archive.md5sum] = "a559f164bb7d6cbeceb348648076830b" 21SRC_URI[archive.md5sum] = "a559f164bb7d6cbeceb348648076830b"
18SRC_URI[archive.sha256sum] = "60e190fc07ec7e33472e60c7e633e04004f7e277a0ffc5e9cd413706881e598d" 22SRC_URI[archive.sha256sum] = "60e190fc07ec7e33472e60c7e633e04004f7e277a0ffc5e9cd413706881e598d"
diff --git a/meta/recipes-gnome/epiphany/files/CVE-2022-29536.patch b/meta/recipes-gnome/epiphany/files/CVE-2022-29536.patch
new file mode 100644
index 0000000000..71cfc1238a
--- /dev/null
+++ b/meta/recipes-gnome/epiphany/files/CVE-2022-29536.patch
@@ -0,0 +1,46 @@
1CVE: CVE-2022-29536
2Upstream-Status: Backport [ https://gitlab.gnome.org/GNOME/epiphany/-/commit/486da133569ebfc436c959a7419565ab102e8525 ]
3Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
4
5From 486da133569ebfc436c959a7419565ab102e8525 Mon Sep 17 00:00:00 2001
6From: Michael Catanzaro <mcatanzaro@redhat.com>
7Date: Fri, 15 Apr 2022 18:09:46 -0500
8Subject: [PATCH] Fix memory corruption in ephy_string_shorten()
9
10This fixes a regression that I introduced in 232c613472b38ff0d0d97338f366024ddb9cd228.
11
12I got my browser stuck in a crash loop today while visiting a website
13with a page title greater than ephy-embed.c's MAX_TITLE_LENGTH, the only
14condition in which ephy_string_shorten() is ever used. Turns out this
15commit is wrong: an ellipses is a multibyte character (three bytes in
16UTF-8) and so we're writing past the end of the buffer when calling
17strcat() here. Ooops.
18
19Shame it took nearly four years to notice and correct this.
20
21Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1106>
22---
23 lib/ephy-string.c | 5 ++---
24 1 file changed, 2 insertions(+), 3 deletions(-)
25
26diff --git a/lib/ephy-string.c b/lib/ephy-string.c
27index 35a148ab32..8e524d52ca 100644
28--- a/lib/ephy-string.c
29+++ b/lib/ephy-string.c
30@@ -114,11 +114,10 @@ ephy_string_shorten (char *str,
31 /* create string */
32 bytes = GPOINTER_TO_UINT (g_utf8_offset_to_pointer (str, target_length - 1) - str);
33
34- /* +1 for ellipsis, +1 for trailing NUL */
35- new_str = g_new (gchar, bytes + 1 + 1);
36+ new_str = g_new (gchar, bytes + strlen ("…") + 1);
37
38 strncpy (new_str, str, bytes);
39- strcat (new_str, "…");
40+ strncpy (new_str + bytes, "…", strlen ("…") + 1);
41
42 g_free (str);
43
44--
45GitLab
46