[ 
https://issues.apache.org/jira/browse/XERCESC-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793875#comment-17793875
 ] 

Scott Cantor edited comment on XERCESC-2244 at 12/6/23 6:27 PM:
----------------------------------------------------------------

You seemed to be suggesting there's a second place it was already removing the 
same hash key, but I didn't spot it, so I thought maybe you might know where 
that was. I don't think that would be enough to get me confident enough to 
change it, but one never knows.

Notably that specific line of code is not removing it from the same hashtable 
twice, but removing two different keys from two different hashtables, unless I 
misconstrued it.


was (Author: canto...@osu.edu):
You seemed to be suggesting there's a second place it was already removing the 
same hash key, but I didn't spot it, so I thought maybe you might know where 
that was. I don't think that would be enough to get me confident enough to 
change it, but one never knows.

> 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.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4
>            Reporter: Markus Friedrich
>            Priority: Major
>
> 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)

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

Reply via email to