[jira] [Created] (XERCESC-2244) DOMDocument::normalizeDocument() fails

"Markus Friedrich (Jira)" <[email protected]> Wed, 12 Jul 2023 09:03:00 +0000 (UTC)
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
Markus Friedrich created XERCESC-2244:
-----------------------------------------

             Summary: DOMDocument::normalizeDocument() fails
                 Key: XERCESC-2244
                 URL: https://issues.apache.org/jira/browse/XERCESC-2244
             Project: Xerces-C++
          Issue Type: Bug
          Components: DOM, Miscellaneous, Utilities
    Affects Versions: 3.2.4
            Reporter: Markus Friedrich


The following XML file

 
{code:java}
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<root xmlns="http://a" xmlns:pre="http://a">
  <child xmlns="http://b" xmlns:pre="http://a"/>
</root> 
{code}
fails when DOMDocument::normailzeDocument() gets called on its DOM.

In DOMNormalizer.cpp:437 the "oldUri" gets removed from "fUriHash" twice, which throws the second time since the key no longer exists in "fUriHash".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)