]> granicus.if.org Git - php/commitdiff
Fixed bug #60842, #51775 (Chunked response parsing error when chunksize length line...
authorIlia Alshanetsky <iliaa@php.net>
Thu, 8 Mar 2012 20:14:26 +0000 (20:14 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 8 Mar 2012 20:14:26 +0000 (20:14 +0000)
ext/soap/php_http.c

index 4273e32dfd16511224ecfc24fbdcc489e6ead19d..2933576ed8fb4be474fd90a9bd2b0d68303cfb7f 100644 (file)
@@ -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;