Hello community, here is the log from the commit of package epiphany for openSUSE:Factory checked in at 2016-08-05 18:17:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/epiphany (Old) and /work/SRC/openSUSE:Factory/.epiphany.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "epiphany" Changes: -------- --- /work/SRC/openSUSE:Factory/epiphany/epiphany.changes 2016-06-25 02:23:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.epiphany.new/epiphany.changes 2016-08-05 18:17:21.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Jul 28 18:26:08 UTC 2016 - zaitor@opensuse.org + +- Add epiphany-embed-Check-for-NULL-SoupURI.patch: Fixes crashes + when accessing soup_uri memory (bgo#768250). + +------------------------------------------------------------------- New: ---- epiphany-embed-Check-for-NULL-SoupURI.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ epiphany.spec ++++++ --- /var/tmp/diff_new_pack.Ab3jfY/_old 2016-08-05 18:17:22.000000000 +0200 +++ /var/tmp/diff_new_pack.Ab3jfY/_new 2016-08-05 18:17:22.000000000 +0200 @@ -27,6 +27,8 @@ Source: http://download.gnome.org/sources/epiphany/3.20/%{name}-%{version}.tar.xz # PATCH-FEATURE-OPENSUSE epiphany-safe-one-click-install.patch bnc330070 vuntz@novell.com -- Make one-click install work with one-click Patch0: epiphany-safe-one-click-install.patch +# PATCH-FIX-UPSTREAM epiphany-embed-Check-for-NULL-SoupURI.patch bgo#768250 zaitor@opensuse.org -- Fixes crashes when accessing soup_uri memory. +Patch1: epiphany-embed-Check-for-NULL-SoupURI.patch # The icon we rely on is from adwaita-icon-theme BuildRequires: adwaita-icon-theme BuildRequires: fdupes @@ -117,6 +119,7 @@ %setup -q translation-update-upstream %patch0 -p1 +%patch1 -p1 %build %configure \ ++++++ epiphany-embed-Check-for-NULL-SoupURI.patch ++++++
From 9573c6efe61fe91b055e66ee7928bfe0e2b3bc0a Mon Sep 17 00:00:00 2001 From: Carlos Garnacho
Date: Thu, 30 Jun 2016 16:45:13 +0200 Subject: embed: Check for NULL SoupURI when trying to load invalid url
Fixes crashes when accessing soup_uri memory. If there is no valid uri, just set the "local page" security level. https://bugzilla.gnome.org/show_bug.cgi?id=768250 --- embed/ephy-web-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 73166bc..40af96a 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1427,7 +1427,7 @@ update_security_status_for_committed_load (EphyWebView *view, g_clear_object (&view->certificate); g_clear_pointer (&view->tls_error_failing_uri, g_free); - if (webkit_security_manager_uri_scheme_is_local (security_manager, soup_uri->scheme)) { + if (!soup_uri || webkit_security_manager_uri_scheme_is_local (security_manager, soup_uri->scheme)) { security_level = EPHY_SECURITY_LEVEL_LOCAL_PAGE; } else if (webkit_web_view_get_tls_info (WEBKIT_WEB_VIEW (view), &view->certificate, &view->tls_errors)) { g_object_ref (view->certificate); @@ -1439,7 +1439,8 @@ update_security_status_for_committed_load (EphyWebView *view, ephy_web_view_set_security_level (view, security_level); - soup_uri_free (soup_uri); + if (soup_uri) + soup_uri_free (soup_uri); } static void -- cgit v0.12