!3 update to 0.5.5

Merge pull request !3 from cuibb1/master
This commit is contained in:
openeuler-ci-bot 2020-07-17 20:48:38 +08:00 committed by Gitee
commit 7cc357f6d9
4 changed files with 7 additions and 32 deletions

View File

@ -1,27 +0,0 @@
From e5efeb654c585dda622f2e8765f06f67f3230aa6 Mon Sep 17 00:00:00 2001
From: hexiujun1 <hexiujun1@huawei.com>
Date: Tue, 7 Jan 2020 14:25:59 +0800
Subject: [PATCH] Never free buffer returned by gtk_entry_get_text
Free() of invalid pointer may not die immediately and can cause
abort/segv on next free/malloc, so calling free() on the buffer
returned by gtk_entry_get_text() here must be removed.
---
lxsession-edit/lxsession-edit.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lxsession-edit/lxsession-edit.c b/lxsession-edit/lxsession-edit.c
index af63edb..0bb23bf 100644
--- a/lxsession-edit/lxsession-edit.c
+++ b/lxsession-edit/lxsession-edit.c
@@ -144,7 +144,6 @@ int main(int argc, char** argv)
g_key_file_set_string( kf, "Session", "windows_manager/command", wm_cmd );
data = g_key_file_to_data(kf, &len, NULL);
g_file_set_contents(cfg, data, len, NULL);
- g_free( wm_cmd );
}
}
}
--
2.9.3

Binary file not shown.

BIN
lxsession-0.5.5.tar.xz Normal file

Binary file not shown.

View File

@ -1,16 +1,15 @@
Name: lxsession
Version: 0.5.4
Release: 2
Version: 0.5.5
Release: 3
Summary: Lightweight X11 session manager
License: GPLv2+
URL: http://lxde.sourceforge.net/
Source0: http://downloads.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.xz
# https://github.com/lxde/lxsession/pull/10
Patch0001: 0001-Never-free-buffer-returned-by-gtk_entry_get_text.patch
# https://sourceforge.net/p/lxde/bugs/760/
Patch1000: lxsession-0.5.2-git9f8d6133-reload.patch
Patch1001: lxsession-0.5.2-notify-daemon-default.patch
Patch0000: lxsession-0.5.2-git9f8d6133-reload.patch
Patch0001: lxsession-0.5.2-notify-daemon-default.patch
BuildRequires: gtk2-devel libindicator-devel libappindicator-devel polkit-devel vala
BuildRequires: docbook-utils intltool gettext desktop-file-utils docbook-style-xsl
@ -111,6 +110,9 @@ desktop-file-install \
%{_mandir}/man1/*
%changelog
* Wed Jul 15 2020 cuibaobao <cuibaobao1@huaweir.com> - 0.5.5-3
- update to 0.5.5
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.4-2
- update software package