aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-15 19:51:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:45 +0800
commit6b71268cb9c32f3e50f496aa7f82ef18655ce4be (patch)
treeb2c92eedd92d1f563a3769f1b12676b0a6c1405a /plugins
parent25f7db861ca5b4fa5d46c35adfc4b2a84b80df40 (diff)
downloadgsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar.gz
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar.bz2
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar.lz
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar.xz
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.tar.zst
gsoc2013-evolution-6b71268cb9c32f3e50f496aa7f82ef18655ce4be.zip
Workaround for bug #644792 - [mail-notify] Crash when sending D-Bus message
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-notification/mail-notification.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index 8fc64f7da7..5cde1fbf69 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -126,6 +126,14 @@ send_dbus_message (const gchar *name,
GVariantBuilder *builder;
GError *error = NULL;
+ g_return_if_fail (name != NULL);
+ g_return_if_fail (data != NULL);
+ g_return_if_fail (g_utf8_validate (name, -1, NULL));
+ g_return_if_fail (g_utf8_validate (data, -1, NULL));
+ g_return_if_fail (msg_uid == NULL || g_utf8_validate (msg_uid, -1, NULL));
+ g_return_if_fail (msg_sender == NULL || g_utf8_validate (msg_sender, -1, NULL));
+ g_return_if_fail (msg_subject == NULL || g_utf8_validate (msg_subject, -1, NULL));
+
/* Create a new message on the DBUS_INTERFACE */
if (!(message = g_dbus_message_new_signal (DBUS_PATH, DBUS_INTERFACE, name)))
return;