#25192 [Fbk->NoF]: infinitive loop in PECL::SOAP, HTTP layer

From: Date: Thu, 09 Dec 2004 00:00:06 +0000
Subject: #25192 [Fbk->NoF]: infinitive loop in PECL::SOAP, HTTP layer
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1709@lists.php.net to get a copy of this message
ID: 25192 Updated by: pecl-dev@lists.php.net Reported By: novicky at aarongroup dot cz -Status: Feedback +Status: No Feedback Bug Type: PECL related Operating System: all PHP Version: Irrelevant New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-12-01 19:16:58] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2003-08-21 09:47:03] novicky at aarongroup dot cz 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); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25192&edit=1

« previous php.pecl.dev (#1709) next »