# HG changeset patch # User Mark Doliner # Date 1313657122 0 # Node ID b6955681b7b3309f6c97571d7717d299f92c24e3 # Parent d2eb28c12d44cb106f5981eb40a69632dd1f708e Fix incorrect handling of HTTP 100 responses when using the HTTP connection method. This can lead to a crash. (Discovered by Marius Wachtler) diff -r d2eb28c12d44 -r b6955681b7b3 ChangeLog --- a/ChangeLog Thu Aug 18 08:41:24 2011 +0000 +++ b/ChangeLog Thu Aug 18 08:45:22 2011 +0000 @@ -41,6 +41,9 @@ * Fix crash when NAMES is empty. (James McLaughlin) (#14518) MSN: + * Fix incorrect handling of HTTP 100 responses when using the HTTP + connection method. This can lead to a crash. (Discovered by Marius + Wachtler) * Fix seemingly random crashing. (#14307) * Fix a crash when the account is disconnected at the time we are doing a SB request. (Hanzz, ported by shlomif) (#12431) diff -r d2eb28c12d44 -r b6955681b7b3 libpurple/protocols/msn/httpconn.c --- a/libpurple/protocols/msn/httpconn.c Thu Aug 18 08:41:24 2011 +0000 +++ b/libpurple/protocols/msn/httpconn.c Thu Aug 18 08:45:22 2011 +0000 @@ -111,8 +111,8 @@ return TRUE; } + size -= (s - buf); buf = s; - size -= (s - buf); } if ((s = strstr(buf, "\r\n\r\n")) == NULL)