https://bugs.winehq.org/show_bug.cgi?id=46206
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #11 from Damjan Jovanovic damjan.jov@gmail.com --- Those 3 commits, especially 4460cb3377, are also the issue in bug 53531.
The problem in bug 53531 is also an "Out of memory" error. There it's caused by this simple one element example:
<element xmlns="whatever"/>
Attempting to call IXMLDOMElement::get_attributes() on that element, then call IXMLDOMNamedNodeMap::get_item(0) on the returned attribute map, causes it to always fail with E_OUTOFMEMORY in domelem_get_item(), because default namespaces have a NULL prefix, so the call to libxml2's xmlNewNsProp() always passes NULL as the property name, and NULL attribute names aren't allowed so libxml2 always returns NULL, causing Wine's domelem_get_item() to always returns E_OUTOFMEMORY:
---snip--- 1834 curr = xmlNewNsProp(NULL, xmlns, ns->prefix, ns->href); 1835 if (!curr) { 1836 xmlFreeNs(xmlns); 1837 return E_OUTOFMEMORY; 1838 } ---snip---
I am not sure how best to fix this. Some help would be appreciated.