You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2026/01/13 22:48:00 UTC
[jira] [Resolved] (AXIS2C-1536) guththila stucked with empty XML comments
[ https://issues.apache.org/jira/browse/AXIS2C-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski resolved AXIS2C-1536.
-------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
- Issue: Guththila XML parser would enter an infinite loop when parsing empty comments like <!---->
- Root cause: The GUTHTHILA_NEXT_CHAR call before the comment parsing while loop consumed the first hyphen of -->, breaking end-of-comment detection
- Fix: Moved the GUTHTHILA_NEXT_CHAR call from before the loop to the malformed comment error branch
- Verification: All 4 guththila tests pass
> guththila stucked with empty XML comments
> -----------------------------------------
>
> Key: AXIS2C-1536
> URL: https://issues.apache.org/jira/browse/AXIS2C-1536
> Project: Axis2-C
> Issue Type: Bug
> Components: guththila
> Affects Versions: 1.6.0
> Environment: Linux
> Reporter: Julien Billon
> Priority: Critical
> Labels: patch
> Fix For: 2.0.0
>
> Attachments: guththila_xml_parser.c.diff
>
>
> Guththila can not decode XML messages with empty XML comments like <!----> (but it works with <!-- -->)
> Here is an example of a message I try to decode :
> <?xml version=\"1.0\" encoding=\"UTF-8\"?>
> <!---->
> <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">
> <soapenv:Header>
> <Session>test</Session>
> </soapenv:Header>
> <soapenv:Body>test</soapenv:Body>
> </soapenv:Envelope>
> and the stack :
> #0 0x00000000005ddb23 in guththila_next_char (m=0x84b340, eof=229, env=0x84b9e0) at guththila_xml_parser.c:1440
> #1 0x00000000005de9bf in guththila_next (m=0x84b340, env=0x84b9e0) at guththila_xml_parser.c:898
> #2 0x00000000005dbf1d in guththila_xml_reader_wrapper_next (parser=0x84b2b0, env=0xe5) at guththila_xml_reader_wrapper.c:405
> #3 0x00000000005cbcc0 in axiom_stax_builder_next_with_token (om_builder=0x84c140, env=0x84b9e0) at om_stax_builder.c:1114
> #4 0x00000000005d368c in axiom_soap_builder_next (soap_builder=0x84c2b0, env=0x84b9e0) at soap_builder.c:335
> #5 0x00000000005d3733 in axiom_soap_builder_get_soap_envelope (soap_builder=0x84c2b0, env=0x84b9e0) at soap_builder.c:277
> #6 0x00000000005d3829 in axiom_soap_builder_create (env=0x84b9e0, stax_builder=0x84c140, soap_version=0x0) at soap_builder.c:877
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org