Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package evince for openSUSE:Factory checked 
in at 2025-07-14 10:52:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evince (Old)
 and      /work/SRC/openSUSE:Factory/.evince.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evince"

Mon Jul 14 10:52:01 2025 rev:183 rq:1292485 version:48.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/evince/evince.changes    2025-07-02 
18:17:45.444032633 +0200
+++ /work/SRC/openSUSE:Factory/.evince.new.7373/evince.changes  2025-07-14 
10:57:43.963631119 +0200
@@ -1,0 +2,16 @@
+Sat Jul 12 13:32:15 UTC 2025 - Michael Gorse <mgo...@suse.com>
+
+- Remove SLE 15 patches (no longer needed for 16):
+  + 
0001-reversed-synctex-Annotate-more-functions-that-wraps-formatting-strings.patch
+  + 0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
+  + 0002-reversed-synctex-Remove-unused-labels.patch
+  + 0002-reversed-synctex-Sync-against-upstream-synctex.patch
+  + 
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
+  + 0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
+  + 0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
+  + 0005-reversed-synctex-Fix-compilation.patch
+  + 0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch
+- Add evince-a11y-crash.patch: fix crash in the accessible code
+  when page cache text is NULL.
+
+-------------------------------------------------------------------
@@ -3866 +3882 @@
-Fri Mar 23 11:57:17 CST 2007 - m...@suse.de
+Fri Mar 23 11:57:17 CDT 2007 - m...@suse.de

Old:
----
  
0001-reversed-synctex-Annotate-more-functions-that-wraps-formatting-strings.patch
  0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
  0002-reversed-synctex-Remove-unused-labels.patch
  0002-reversed-synctex-Sync-against-upstream-synctex.patch
  
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
  0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
  0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
  0005-reversed-synctex-Fix-compilation.patch
  0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch

New:
----
  evince-a11y-crash.patch

----------(Old B)----------
  Old:- Remove SLE 15 patches (no longer needed for 16):
  + 
0001-reversed-synctex-Annotate-more-functions-that-wraps-formatting-strings.patch
  + 0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
  Old:  + 
0001-reversed-synctex-Annotate-more-functions-that-wraps-formatting-strings.patch
  + 0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
  + 0002-reversed-synctex-Remove-unused-labels.patch
  Old:  + 
0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
  + 0002-reversed-synctex-Remove-unused-labels.patch
  + 0002-reversed-synctex-Sync-against-upstream-synctex.patch
  Old:  + 0002-reversed-synctex-Remove-unused-labels.patch
  + 0002-reversed-synctex-Sync-against-upstream-synctex.patch
  + 
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
  Old:  + 0002-reversed-synctex-Sync-against-upstream-synctex.patch
  + 
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
  + 0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
  Old:  + 
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
  + 0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
  + 0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
  Old:  + 
0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
  + 0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
  + 0005-reversed-synctex-Fix-compilation.patch
  Old:  + 0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
  + 0005-reversed-synctex-Fix-compilation.patch
  + 0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch
  Old:  + 0005-reversed-synctex-Fix-compilation.patch
  + 0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch
- Add evince-a11y-crash.patch: fix crash in the accessible code
----------(Old E)----------

----------(New B)----------
  New:  + 0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch
- Add evince-a11y-crash.patch: fix crash in the accessible code
  when page cache text is NULL.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ evince.spec ++++++
--- /var/tmp/diff_new_pack.6RL8QZ/_old  2025-07-14 10:57:44.815666440 +0200
+++ /var/tmp/diff_new_pack.6RL8QZ/_new  2025-07-14 10:57:44.819666606 +0200
@@ -29,27 +29,10 @@
 Group:          Productivity/Office/Other
 URL:            https://wiki.gnome.org/Apps/Evince
 Source0:        %{name}-%{version}.tar.zst
-# PATCH-FIX-SLE alarr...@suse.com - Reverse upstream bump of synctex required 
version to build with texlive 2017
-Patch0:         
0001-reversed-synctex-Annotate-more-functions-that-wraps-formatting-strings.patch
-# PATCH-FIX-SLE
-Patch1:         0002-reversed-synctex-Sync-against-upstream-synctex.patch
-# PATCH-FIX-SLE
-Patch2:         
0003-reversed-cut-n-paste-Annotate-functions-that-wraps-formatting-strings.patch
-# PATCH-FIX-SLE
-Patch3:         
0001-reversed-synctex-Move-_GNU_SOURCE-to-the-top-of-the-source-code.patch
-# PATCH-FIX-SLE
-Patch4:         0002-reversed-synctex-Remove-unused-labels.patch
-# PATCH-FIX-SLE
-Patch5:         
0003-reversed-synctex-Silence-error-when-no-synctex-file-is-present.patch
-# PATCH-FIX-SLE
-Patch6:         
0004-reversed-synctex-Annotate-functions-that-wrap-vfprintf.patch
-# PATCH-FIX-SLE
-Patch7:         0005-reversed-synctex-Fix-compilation.patch
-# PATCH-FIX-SLE
-Patch8:         0006-reversed-synctex-Update-from-version-1.18-to-1.21.patch
-
 # PATCH-FIX-UPSTREAM evince-kpathsea.patch -- Fix build with gcc 15
-Patch1000:      evince-kpathsea.patch
+Patch0:         evince-kpathsea.patch
+# PATCH-FIX-UPSTREAM evince-a11y-crash.patch mgo...@suse.com -- fix crash in 
the accessible code when page cache text is NULL.
+Patch1:         evince-a11y-crash.patch
 
 BuildRequires:  c_compiler
 BuildRequires:  desktop-file-utils
@@ -211,19 +194,7 @@
 %lang_package
 
 %prep
-%setup
-%if %{pkg_vcmp pkgconfig(synctex) < 1.19}
-%patch -P 0 -p1
-%patch -P 1 -p1
-%patch -P 2 -p1
-%patch -P 3 -p1
-%patch -P 4 -p1
-%patch -P 5 -p1
-%patch -P 6 -p1
-%patch -P 7 -p1
-%patch -P 8 -p1
-%endif
-%autopatch -p1 -m 1000
+%autosetup -p1
 
 %build
 %meson \

++++++ evince-a11y-crash.patch ++++++
>From 440ab79d832557997af3c8f17c8a244b8d1bce1a Mon Sep 17 00:00:00 2001
From: Colomban Wendling <cwendl...@hypra.fr>
Date: Thu, 7 Mar 2024 17:01:38 +0100
Subject: [PATCH] libview: Fix crash in the accessible code when page cache
 text is NULL

If `ev_page_cache_get_text()` returns `NULL`, it can crash both
`get_character_count()` and `get_substring()` implementations of
`EvPageAccessible`, although it's a valid return value from the former.

Fix those two implementations to handle this edge case.
---
 libview/ev-page-accessible.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c
index 85995b89..2d392de3 100644
--- a/libview/ev-page-accessible.c
+++ b/libview/ev-page-accessible.c
@@ -486,6 +486,9 @@ ev_page_accessible_get_substring (AtkText *text,
                return NULL;
 
        page_text = ev_page_cache_get_text (view->page_cache, self->priv->page);
+       if (!page_text)
+               return NULL;
+
        if (end_offset < 0 || end_offset > g_utf8_strlen (page_text, -1))
                end_offset = strlen (page_text);
        start_offset = CLAMP (start_offset, 0, end_offset);
@@ -633,11 +636,13 @@ ev_page_accessible_get_character_count (AtkText *text)
 {
        EvPageAccessible *self = EV_PAGE_ACCESSIBLE (text);
        EvView *view = ev_page_accessible_get_view (self);
-       gint retval;
+       const gchar *page_text;
 
-       retval = g_utf8_strlen (ev_page_cache_get_text (view->page_cache, 
self->priv->page), -1);
+       page_text = ev_page_cache_get_text (view->page_cache, self->priv->page);
+       if (!page_text)
+               return 0;
 
-       return retval;
+       return g_utf8_strlen (page_text, -1);
 }
 
 static gboolean
-- 
2.50.0

Reply via email to