summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2012-03-08 20:14:26 +0000
committerIlia Alshanetsky <iliaa@php.net>2012-03-08 20:14:26 +0000
commitaee5a9864d95e0b60100b7498f2e180ef200eaff (patch)
tree10a6a6244a806379736417da3087092f5411d77c /ext/soap/php_http.c
parentaee85bc1639cdadc680825c211a8386f86659622 (diff)
downloadphp-git-aee5a9864d95e0b60100b7498f2e180ef200eaff.tar.gz
Fixed bug #60842, #51775 (Chunked response parsing error when chunksize length line is > 10 bytes).
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 4273e32dfd..2933576ed8 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -1313,15 +1313,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;