From ecb50f67fa6a96f521aaa01aea8b7ad9840661ea Mon Sep 17 00:00:00 2001 From: Mark Doliner Date: Thu, 18 Aug 2011 08:45:22 +0000 Subject: [PATCH] Fix incorrect handling of HTTP 100 responses when using the HTTP connection method. This can lead to a crash. (Discovered by Marius Wachtler) --HG-- extra : convert_revision : 16af0661899a978b4fedc1c165965b85009013d1 --- ChangeLog | 3 +++ libpurple/protocols/msn/httpconn.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3b0e6f3ed..83fb87aaf5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,9 @@ version 2.10.0 (08/18/2011): * 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 --git a/libpurple/protocols/msn/httpconn.c b/libpurple/protocols/msn/httpconn.c index 9e0e8f390e..5bdcd61c15 100644 --- a/libpurple/protocols/msn/httpconn.c +++ b/libpurple/protocols/msn/httpconn.c @@ -111,8 +111,8 @@ msn_httpconn_parse_data(MsnHttpConn *httpconn, const char *buf, return TRUE; } - buf = s; size -= (s - buf); + buf = s; } if ((s = strstr(buf, "\r\n\r\n")) == NULL) -- 2.11.4.GIT