|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25192 infinitive loop in SOAP, HTTP layer
Submitted: 2003-08-21 09:47 UTC Modified: 2010-12-29 14:06 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: novicky at aarongroup dot cz Assigned:
Status: No Feedback Package: SOAP related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: novicky at aarongroup dot cz
New email:
PHP Version: OS:


 [2003-08-21 09:47 UTC] novicky at aarongroup dot cz
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 ? 

--- 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' */


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-09 01:00 UTC] pecl-dev at lists dot php dot net
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".
 [2010-12-29 14:06 UTC]
-Summary: infinitive loop in PECL::SOAP, HTTP layer +Summary: infinitive loop in SOAP, HTTP layer -Package: PECL related +Package: SOAP related
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Sep 24 18:01:24 2023 UTC