You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Caochongyu (JIRA)" <xe...@xml.apache.org> on 2005/08/29 05:14:08 UTC

[jira] Commented: (XERCESC-1484) in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.

    [ http://issues.apache.org/jira/browse/XERCESC-1484?page=comments#action_12320374 ] 

Caochongyu commented on XERCESC-1484:
-------------------------------------

no one answers this?

maybe I have not expressed it well?

we have built some program on 2.1, now migrate to 2.6. then the problem occurs,
in 2.1, Xerces supported clone on the DomumentType without OwnerDocument, but in 2.6, it doesn't support it. 
it is your design? or it is a bug?


> in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.
> ------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1484
>          URL: http://issues.apache.org/jira/browse/XERCESC-1484
>      Project: Xerces-C++
>         Type: Bug
>   Components: DOM
>     Versions: 2.6.0
>  Environment: win32, vc7,
>     Reporter: Caochongyu
>     Priority: Blocker

>
> I createDocumentType, then call DOM_Node::cloneNode on it. 
> it crashes in 
> NamedNodeMapImpl::cloneMap(NodeImpl *ownerNod).
> {
>   MemoryManager* manager = ownerNod->getDocument()->getMemoryManager();
> where ownerNod->getDocument() returns NULL.
> it could be NULL, eh?

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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