marcus@jet.franken.de: [PATCH] msxml3: fixed NULL ptr derefence possibilities (coverity)

0 views
Skip to first unread message

Patchwatcher

unread,
Oct 30, 2008, 6:37:42 PM10/30/08
to wine-patch...@googlegroups.com
From: Marcus Meissner <mar...@jet.franken.de>
Subject: [PATCH] msxml3: fixed NULL ptr derefence possibilities (coverity)
Date: Fri, 31 Oct 2008 00:17:44 +0100


Hi,

Coverity CID 810, xsltSS is derferenced outside of
a if (xsltSS) check. I have to agree.

Ciao, Marcus
---
dlls/msxml3/node.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 3162f82..1d99be3 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -1339,12 +1339,12 @@ static HRESULT WINAPI xmlnode_transformNode(
}
}
xmlFreeDoc(result);
+ /* libxslt "helpfully" frees the XML document the stylesheet was
+ generated from, too */
+ xsltSS->doc = NULL;
+ xsltFreeStylesheet(xsltSS);
}

- /* libxslt "helpfully" frees the XML document the stylesheet was
- generated from, too */
- xsltSS->doc = NULL;
- xsltFreeStylesheet(xsltSS);
IXMLDOMNode_Release(ssNew);
}

--
1.5.6


Reply all
Reply to author
Forward
0 new messages