[mate-panel] 02/04: debian/patches: Add 0002_avoid-dereferencing-NULL-pointer.patch. Fix NULL pointer dereference in GList extensions. (Closes: #779854).

Mike Gabriel sunweaver at debian.org
Sun Jun 7 00:38:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-panel.

commit ae05ba48a496b5f913724a546bdc5230514b2237
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Jun 7 02:12:11 2015 +0200

    debian/patches: Add 0002_avoid-dereferencing-NULL-pointer.patch. Fix NULL pointer dereference in GList extensions. (Closes: #779854).
---
 .../0002_avoid-dereferencing-NULL-pointer.patch    | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/0002_avoid-dereferencing-NULL-pointer.patch b/debian/patches/0002_avoid-dereferencing-NULL-pointer.patch
new file mode 100644
index 0000000..b56f932
--- /dev/null
+++ b/debian/patches/0002_avoid-dereferencing-NULL-pointer.patch
@@ -0,0 +1,23 @@
+From 728faccf9ad9e6f6eff796c0d7f9f95a34e1885d Mon Sep 17 00:00:00 2001
+From: monsta <monsta at inbox.ru>
+Date: Thu, 5 Mar 2015 17:56:43 +0300
+Subject: [PATCH] fix logic a bit - avoid dereferencing NULL pointer
+
+---
+ mate-panel/libpanel-util/panel-list.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mate-panel/libpanel-util/panel-list.c b/mate-panel/libpanel-util/panel-list.c
+index 154153c..3c0a9ee 100644
+--- a/mate-panel/libpanel-util/panel-list.c
++++ b/mate-panel/libpanel-util/panel-list.c
+@@ -166,7 +166,7 @@ panel_g_list_resort_item (GList        *list,
+ 
+ 	dl = g_list_find (list, data);
+ 
+-	if (dl != NULL)
++	if (dl == NULL)
+ 		return list;
+ 
+ 	while (dl->next &&
+
diff --git a/debian/patches/series b/debian/patches/series
index 34ec434..acf5eb9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001_update-marco-wm-name.patch
+0002_avoid-dereferencing-NULL-pointer.patch
 2001_omit-gfdl-licensed-help-files.patch
 2002_stretched-buttons-on-vertical-plains.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-panel.git



More information about the pkg-mate-commits mailing list