|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-01 19:16 UTC] tony2001@php.net
[2004-12-09 01:00 UTC] pecl-dev at lists dot php dot net
[2010-12-29 14:06 UTC] jani@php.net
-Summary: infinitive loop in PECL::SOAP, HTTP layer
+Summary: infinitive loop in SOAP, HTTP layer
-Package: PECL related
+Package: SOAP related
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 02:00:02 2025 UTC |
Description: ------------ I have found a problem in PECL::SOAP extension in the HTTP layer. There is a bug in php_http.c in a piece of code which handles chunked data as a response from soap server. This bug leads to infinite loop when decoding chunked response. I enclose a patch which fixes the problem. ? Can someone check it and commit to CVS ? ? Thanks ? Marek --- php_http.c.orig 2003-08-21 13:21:11.000000000 +0200 +++ php_http.c 2003-08-21 13:21:11.000000000 +0200 @@ -385,10 +385,10 @@ http_buf = erealloc(http_buf, http_buf_size + buf_size + 1); len_size = 0; - while (http_buf_size < buf_size) { + while (len_size < buf_size) { len_size += php_stream_read(stream, http_buf + http_buf_size, buf_size - len_size); - http_buf_size += len_size; } + http_buf_size += len_size; /* Eat up '\r' '\n' */ php_stream_getc(stream);php_stream_getc(stream);