Bernhard Übelacker : msxml3: Fix crashes due to access to invalid context pointer.

Alexandre Julliard julliard at winehq.org
Tue Dec 21 15:16:33 CST 2021


Module: wine
Branch: master
Commit: 2ef4cde8ef65800db480588edc0ea3da8f527b61
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2ef4cde8ef65800db480588edc0ea3da8f527b61

Author: Bernhard Übelacker <bernhardu at mailbox.org>
Date:   Mon Dec 20 09:33:55 2021 +0100

msxml3: Fix crashes due to access to invalid context pointer.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52073
Signed-off-by: Bernhard Übelacker <bernhardu at mailbox.org>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 721ad54e379..272e438e773 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -1329,7 +1329,7 @@ static HRESULT import_loader_onDataAvailable(void *ctxt, char *ptr, DWORD len)
 
     inputbuffer = xmlParserInputBufferCreateIO(import_loader_io_read, import_loader_io_close, buffer,
             XML_CHAR_ENCODING_NONE);
-    *input = xmlNewIOInputStream(ctxt, inputbuffer, XML_CHAR_ENCODING_NONE);
+    *input = xmlNewIOInputStream(NULL, inputbuffer, XML_CHAR_ENCODING_NONE);
     if (!*input)
         xmlFreeParserInputBuffer(inputbuffer);
 




More information about the wine-cvs mailing list