Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
Testing reveals the following:
CreateStreamOnHGlobal(NULL, TRUE, &stream); // line 7351
creates a stream with a hglobal in discarded state.
The call to GlobalLock on this handle at line 7359 fails with ERROR_DISCARDED.
This is verified (on Windows) to be the error for such a memory object.
The only modification to this stream object is the call
IXMLDOMDocument_save(doc, dest); // line 7354
Logic suggests IXMLDOMDocument_save doesn't change the state of the HGLOBAL,
and therefore the test code crashes when the result (NULL) from GlobalLock
is used without testing validity.
Attachments
Issue Links
- is blocked by
-
CORE-6736 kernel32: MultiByteToWideChar CP_UTF8 fails
- Resolved
-
CORE-6665 msxml3 xmlnodelist_QueryInterface crashes if ppvObject is NULL
- Closed
-
CORE-6738 Missing iconv() library prevents msxml3 (and other code) to function.
- Resolved
- relates to
-
CORE-6697 msxml: no support for Windows-1252 encoding
- Resolved