changeset 29922:05797ab9b2c2

Fix an MSN emoticon crash discovered by Pierre Nogu¸«²s of Meta Security. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 12 May 2010 04:34:54 +0000
parents a40c55113f7d
children eec68edb463f
files libpurple/protocols/msn/slp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Wed May 12 04:26:46 2010 +0000
+++ b/libpurple/protocols/msn/slp.c	Wed May 12 04:34:54 2010 +0000
@@ -938,6 +938,8 @@
 	conv = swboard->conv;
 
 	body = msn_message_get_bin_data(msg, &body_len);
+	if (!body || !body_len)
+		return;
 	body_str = g_strndup(body, body_len);
 
 	/* MSN Messenger 7 may send more than one MSNObject in a single message...