#25192 [NEW]: infinitive loop in PECL::SOAP, HTTP layer

From: Date: Thu, 21 Aug 2003 14:47:03 +0000
Subject: #25192 [NEW]: infinitive loop in PECL::SOAP, HTTP layer
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20274@lists.php.net to get a copy of this message
From: novicky at aarongroup dot cz Operating system: all PHP version: Irrelevant PHP Bug Type: PECL related Bug description: infinitive loop in PECL::SOAP, HTTP layer 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 bug report at http://bugs.php.net/?id=25192&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25192&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25192&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25192&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25192&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25192&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25192&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25192&r=support Expected behavior: http://bugs.php.net/fix.php?id=25192&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25192&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25192&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25192&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25192&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25192&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25192&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25192&r=gnused

« previous php.pear.dev (#20274) next »