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/30 07:53:04 UTC

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

CLONE -in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.
-------------------------------------------------------------------------------------------------------

         Key: XERCESC-1488
         URL: http://issues.apache.org/jira/browse/XERCESC-1488
     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


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

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1488?page=all ]
     
Alberto Massari resolved XERCESC-1488:
--------------------------------------

    Resolution: Duplicate

Please don't clone a bug that has been closed, especially if you do it to ask for a question that should be posted to the mailing list (c-users@xerces.apache.org).

> CLONE -in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.
> -------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1488
>          URL: http://issues.apache.org/jira/browse/XERCESC-1488
>      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


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

Posted by "Caochongyu (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1488?page=comments#action_12320530 ] 

Caochongyu commented on XERCESC-1488:
-------------------------------------

As I know it is in deprecated DOM. 
I have searched the docs that I have read that it is put in deprecated DOM in 2.0.0.
I wonder, If I want to use new codes, How can I do?

> CLONE -in the NamedNodeMapImpl::cloneMap, forget verify whther the ownerNod->getDocument() return NULL.
> -------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1488
>          URL: http://issues.apache.org/jira/browse/XERCESC-1488
>      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