]> 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)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index 499f24c05fd23189c0fc8d04a80bebdcec74977e..9503ce01b3b773b0e282731386eeedcd5fc3c949 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -56,6 +56,8 @@ PHP                                                                        NEWS
 
 - SOAP
   . Fixed basic HTTP authentication for WSDL sub requests. (Dmitry)
+  . Fixed bug #60842, #51775 (Chunked response parsing error when 
+    chunksize length line is > 10 bytes). (Ilia)
   . Fixed bug #60887 (SoapClient ignores user_agent option and sends no
     User-Agent header). (carloschilazo at gmail dot com)
     
index 9dea5f71b278f3691a39f3882d986135ce4c61ef..c414bba72b80a1070a5c8432c3c5d204d4807ae3 100644 (file)
@@ -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;