diff options
author | Gaurav <g.gupta@samsung.com> | 2014-02-18 11:47:43 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-02-18 11:47:43 +0800 |
commit | 085b997cfd0cd19481d9eecab22da5adf67bcbdc (patch) | |
tree | 433679bf5d60f629bbb8e088fde029a121728d86 | |
parent | 41586ca6674d2fae32b17156494cb6f244ac1170 (diff) | |
download | libxml2-085b997cfd0cd19481d9eecab22da5adf67bcbdc.tar.gz |
Avoid a possible NULL pointer dereference
For https://bugzilla.gnome.org/show_bug.cgi?id=708355
-rw-r--r-- | xmlmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlmodule.c b/xmlmodule.c index 7fe5bc27..50ed666a 100644 --- a/xmlmodule.c +++ b/xmlmodule.c @@ -115,7 +115,7 @@ xmlModuleSymbol(xmlModulePtr module, const char *name, void **symbol) { int rc = -1; - if ((NULL == module) || (symbol == NULL)) { + if ((NULL == module) || (symbol == NULL) || (name == NULL)) { __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_MODULE, XML_MODULE_OPEN, XML_ERR_FATAL, NULL, 0, 0, NULL, NULL, 0, 0, "null parameter\n"); |