Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 32033 invoked from network); 22 Oct 2004 19:11:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Oct 2004 19:11:28 -0000 Received: (qmail 55789 invoked by uid 500); 22 Oct 2004 19:11:27 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 55752 invoked by uid 500); 22 Oct 2004 19:11:26 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 55736 invoked by uid 99); 22 Oct 2004 19:11:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 22 Oct 2004 12:11:26 -0700 Received: (qmail 23204 invoked from network); 22 Oct 2004 19:13:25 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 22 Oct 2004 19:13:25 -0000 Message-ID: <1485256957.1098472405797.JavaMail.apache@nagoya> Date: Fri, 22 Oct 2004 12:13:25 -0700 (PDT) From: axis-c-dev@ws.apache.org To: axis-c-dev@ws.apache.org Subject: [jira] Created: (AXISCPP-222) infinite loop in XMLPaserExpat when it encounters bad XML Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXISCPP-222 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXISCPP-222 Summary: infinite loop in XMLPaserExpat when it encounters bad XML Type: Bug Status: Unassigned Priority: Minor Project: Axis-C++ Components: XML parser abstraction layer Versions: 1.2 Final 1.3 Beta Assignee: Reporter: James Guido Created: Fri, 22 Oct 2004 12:12 PM Updated: Fri, 22 Oct 2004 12:12 PM Environment: HP-UX with GCC compiler, Expat 1.95.7 Description: Code when encounters only one event in XML events stack, it checks if last event is CHAR data. If last event is CHAR data; then, code proceeds to parse more data. Infinite loop is triggered when CHAR is the last data in stream. Eventhough stream returns TRANSPORT_FINISHED, XMLParserExpat goes into an infinite loop requesting for more data to parse. I accidently trigger the bug by setting the content-lenght smaller than message, then the web server clipped SOAP message. If Axis w/ Expat parser encounters a message that was clipped/truncated, it will go into infinite if CHAR data is last data in stream. I am attaching the fix I used. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira