xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27561] New: - Exception thrown when root element has no attributes
Date Wed, 10 Mar 2004 08:58:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27561>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27561

Exception thrown when root element has no attributes

           Summary: Exception thrown when root element has no attributes
           Product: Xerces-C++
           Version: 2.5.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Non-Validating Parser
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: matthew@acepoint.cz


There is some new code in 2.5.0 that checks whether the root element of an XML 
document has two namespace declarations. There is a mistake in the code, 
however, since it throws an exception (index out of range) when the root 
element has no attributes. The relevant code can be found in wfxmlscanner.cpp 
at line 1499. I patched it for now by adding an if condition:

if (attCount)
{
...
}

around the whole loop.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message