From b61f335b9da857e210248c13990bbae1b84174f1 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 8 Mar 2012 20:14:26 +0000 Subject: Fixed bug #60842, #51775 (Chunked response parsing error when chunksize length line is > 10 bytes). --- ext/soap/php_http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/soap/php_http.c') diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 9dea5f71b2..c414bba72b 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -1311,15 +1311,15 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r } if (header_chunked) { - char ch, done, chunk_size[10], headerbuf[8192]; + char ch, done, headerbuf[8192]; done = FALSE; while (!done) { int buf_size = 0; - php_stream_gets(stream, chunk_size, sizeof(chunk_size)); - if (sscanf(chunk_size, "%x", &buf_size) > 0 ) { + php_stream_gets(stream, headerbuf, sizeof(headerbuf)); + if (sscanf(headerbuf, "%x", &buf_size) > 0 ) { if (buf_size > 0) { int len_size = 0; -- cgit v1.2.1