axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (AXISCPP-222) infinite loop in XMLPaserExpat when it encounters bad XML
Date Fri, 22 Oct 2004 19:13:26 GMT
The following issue has been updated:

    Updater: James Guido (
       Date: Fri, 22 Oct 2004 12:12 PM
             Attachment changed to XMLParserExpat.cpp.diff_w_v1.9
For a full history of the issue, see:

View the issue:

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++
             XML parser abstraction layer
             1.2 Final
             1.3 Beta

   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

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.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message