[
https://issues.apache.org/jira/browse/XERCESC-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov closed XERCESC-1919.
------------------------------------
Assignee: Boris Kolpackov
Fix Version/s: 3.1.1
3.2.0
Resolution: Fixed
The fix is in SVN and will be in the shortly-to-be-released 3.1.1. Thanks for
reporting this and for the test case!
> Access violation in AbstractDOMParser::docComment()
> ---------------------------------------------------
>
> Key: XERCESC-1919
> URL: https://issues.apache.org/jira/browse/XERCESC-1919
> Project: Xerces-C++
> Issue Type: Bug
> Components: Non-Validating Parser
> Affects Versions: 3.1.0
> Environment: Windows 7
> Visual C++ 2008
> Static manually built version of Xerces 3.1.0
> Reporter: Dmitriy V'jukov
> Assignee: Boris Kolpackov
> Fix For: 3.1.1, 3.2.0
>
> Attachments: crash.xml
>
>
> I parse an XML document with the following code:
> XercesDOMParser parser;
> parser.setCreateEntityReferenceNodes(false);
> parser.setLoadExternalDTD(false);
> parser.setLoadSchema(false);
> parser.setSkipDTDValidation(true);
> parser.setExitOnFirstFatalError(false);
> MemBufInputSource source ((XMLByte const*)decoded.begin(),
> decoded.size(), L"");
> parser.parse(source);
> Parser crashes in:
> void AbstractDOMParser::docComment(const XMLCh* const comment)
> {
> if (fCreateCommentNodes) {
> DOMComment *dcom = fDocument->createComment(comment);
> castToParentImpl (fCurrentParent)->appendChildFast (dcom); // <-----
> fCurrentParent == 0
> fCurrentNode = dcom;
> }
> }
> with fCurrentParent == 0.
> Current position of parser is line 233, column 17, i.e. straight after "<!--
> Scripts -->"
> Here is the XML document:
> [attached as 'crash.xml']
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]