Fix an MSN emoticon crash discovered by Pierre Noguès of Meta Security.
authorElliott Sales de Andrade <qulogic@pidgin.im>
Wed, 12 May 2010 04:34:54 +0000
changeseta91ffa611a85 pushlog
parent 1e3c291ae168
child 383aeae59ce2
Fix an MSN emoticon crash discovered by Pierre Noguès of Meta Security.


committer: John Bailey <rekkanoryo@rekkanoryo.org>
libpurple/protocols/msn/slp.c
     1.1 --- a/libpurple/protocols/msn/slp.c
     1.2 +++ b/libpurple/protocols/msn/slp.c
     1.3 @@ -938,6 +938,8 @@
     1.4  	conv = swboard->conv;
     1.5  
     1.6  	body = msn_message_get_bin_data(msg, &body_len);
     1.7 +	if (!body || !body_len)
     1.8 +		return;
     1.9  	body_str = g_strndup(body, body_len);
    1.10  
    1.11  	/* MSN Messenger 7 may send more than one MSNObject in a single message...