[mail-notification] Fixed a posible segfault in the evolution plugin

epienbro epienbro at fedoraproject.org
Tue Mar 20 23:03:22 UTC 2012


commit b732e43b26a55b48055669cc3d9cf397074da2a9
Author: Erik van Pienbroek <erik at vanpienbroek.nl>
Date:   Wed Mar 21 00:03:17 2012 +0100

    Fixed a posible segfault in the evolution plugin

 mail-notification-5.4-evolution.patch |    3 ++-
 mail-notification.spec                |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/mail-notification-5.4-evolution.patch b/mail-notification-5.4-evolution.patch
index 87514c2..3c09249 100644
--- a/mail-notification-5.4-evolution.patch
+++ b/mail-notification-5.4-evolution.patch
@@ -136,7 +136,8 @@ diff -Nrbu mail-notification-5.4/build/src/mn-evolution-server.c mail-notificati
  	    CamelMessageInfo *info = summary->pdata[i];
 +#endif
  
- 	    if ((camel_message_info_flags(info) & CAMEL_MESSAGE_SEEN) == 0)
+-	    if ((camel_message_info_flags(info) & CAMEL_MESSAGE_SEEN) == 0)
++	    if (info && (camel_message_info_flags(info) & CAMEL_MESSAGE_SEEN) == 0)
  	      g_ptr_array_add(*ret, self_camel_message_info_to_dbus_struct(info));
  	  }
  
diff --git a/mail-notification.spec b/mail-notification.spec
index 14ed0e6..2effea1 100644
--- a/mail-notification.spec
+++ b/mail-notification.spec
@@ -1,6 +1,6 @@
 Name:           mail-notification
 Version:        5.4
-Release:        52%{?dist}
+Release:        53%{?dist}
 Summary:        Status icon that informs you if you have new mail
 
 Group:          Applications/Internet
@@ -234,6 +234,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
 
 
 %changelog
+* Wed Mar 21 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 5.4-53
+- Fixed a posible segfault in the evolution plugin
+
 * Wed Feb 22 2012 Milan Crha <mcrha at redhat.com> - 5.4-52
 - Rebuild against newer evolution-data-server
 


More information about the scm-commits mailing list