Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-691

systemid in DOMDocumentType clobbered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • DOM
    • None
    • Operating System: All
      Platform: All
    • 13860

    Description

      In DOMDocumentTypeImpl::setOwnerDocument() (DOMDocumentTypeImpl.cpp line 232)
      the systemid member variable is clobbered by the value of internalSubset due to
      a typo when the code was duped from the paragraph above it.

      temp = (XMLCh*) internalSubset; // cast off const
      systemId = docImpl->cloneString(internalSubset);
      delete [] temp;

      should be

      temp = (XMLCh*) internalSubset; // cast off const
      internalSubset = docImpl->cloneString(internalSubset);
      delete [] temp;

      Attachments

        Activity

          People

            Unassigned Unassigned
            pjc@kerridge.com Peter Crozier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: