Accepting request 1035522 from home:Sound0fSilence

Fixed bug boo#1204157

OBS-URL: https://build.opensuse.org/request/show/1035522
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libwnck?expand=0&rev=129
This commit is contained in:
Dominique Leuenberger 2022-11-14 08:53:11 +00:00 committed by Git OBS Bridge
parent e0fba57486
commit e300805086
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From: Alberts Muktupavels <alberts.muktupavels@gmail.com>
Date: 2022-09-20 15:40:22 +0300
Subject: Avoid segfault in invalidate_icons
References: boo#1204157 lp#1990263 glgo#GNOME/libwnck!46
Upstream: submitted
Screens variable won't be initialized if default icon sizes are
set/changed before using wnck_screen_get_default
---
libwnck/wnck-handle.c | 3 +++
1 file changed, 3 insertions(+)
--- a/libwnck/wnck-handle.c 2022-11-09 14:54:06.445579490 +0100
+++ b/libwnck/wnck-handle.c 2022-11-09 14:54:45.522267274 +0100
@@ -70,6 +70,9 @@
Display *xdisplay;
int i;
+ if (self->screens == NULL)
+ return;
+
xdisplay = _wnck_get_default_display ();
for (i = 0; i < ScreenCount (xdisplay); ++i)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 9 15:34:19 UTC 2022 - Dude <le0nard@posteo.net>
- Add handle-avoid-segfault-in-invalidate-icons.patch to fix a
segmentation fault (bsc#1204157)
-------------------------------------------------------------------
Fri Sep 16 14:41:29 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -25,6 +25,7 @@ Group: Development/Libraries/GNOME
URL: https://git.gnome.org/browse/libwnck
Source0: https://download.gnome.org/sources/libwnck/43/%{name}-%{version}.tar.xz
Source98: baselibs.conf
Patch0: handle-avoid-segfault-in-invalidate-icons.patch
BuildRequires: fdupes
BuildRequires: gettext