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

From: Date: Wed, 01 Dec 2004 18:17:06 +0000
Subject: #25192 [Opn->Fbk]: infinitive loop in PECL::SOAP, HTTP layer
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1674@lists.php.net to get a copy of this message
ID: 25192 Updated by: tony2001@php.net Reported By: novicky at aarongroup dot cz -Status: Open +Status: Feedback Bug Type: PECL related Operating System: all PHP Version: Irrelevant New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#1674) next »