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 bu...@apache.org on 2002/10/09 05:50:10 UTC

DO NOT REPLY [Bug 13435] New: - Memory mismanagement in DOMDocumentImpl.cpp

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13435>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13435

Memory mismanagement in DOMDocumentImpl.cpp

           Summary: Memory mismanagement in DOMDocumentImpl.cpp
           Product: Xerces-C++
           Version: 2.1.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: DOM
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: zell@best.com


diff -Naur xerces-c-src2_1_0/src/xercesc/dom/impl/DOMDocumentImpl.cpp 
xerces_c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
--- xerces-c-src2_1_0/src/xercesc/dom/impl/DOMDocumentImpl.cpp  Tue Aug 27 
00:24:30 2002
+++ xerces_c/src/xercesc/dom/impl/DOMDocumentImpl.cpp   Tue Oct  8 19:57:48 2002
@@ -800,7 +800,7 @@
     while (fCurrentBlock != 0)
     {
         void *nextBlock = *(void **)fCurrentBlock;
-        delete [] fCurrentBlock;
+        delete [] (char *)fCurrentBlock;
         fCurrentBlock = nextBlock;
     }

The effects of calling delete on a void * are undefined.

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