pidgin: 894460d2: Fix an MSN emoticon crash discovered by ...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Thu May 13 01:16:28 EDT 2010


-----------------------------------------------------------------
Revision: 894460d22c434e73d60b71ec031611988e687c8b
Ancestor: 884d44222e8c81ecec51c25e07d005e002a5479b
Author: qulogic at pidgin.im
Date: 2010-05-12T04:34:54
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/894460d22c434e73d60b71ec031611988e687c8b

Modified files:
        libpurple/protocols/msn/slp.c

ChangeLog: 

Fix an MSN emoticon crash discovered by Pierre Nogu?s of Meta Security.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slp.c	3d242ac03cbaf8adbc721e591fcacb3021c2cb51
+++ libpurple/protocols/msn/slp.c	1b59066445808e2233aa6a1670feb81ba3dfc999
@@ -938,6 +938,8 @@ msn_emoticon_msg(MsnCmdProc *cmdproc, Ms
 	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...


More information about the Commits mailing list