diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 22:26:52 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 22:26:52 +0200 |
commit | 3b14c3fd6410716d407178e48972b1c1bea48c29 (patch) | |
tree | 232c9c894b45099f211728742569111738b17e16 /debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch | |
parent | edefea9d480751896e380c7bfc92517c9e39039d (diff) | |
download | libxml2-3b14c3fd6410716d407178e48972b1c1bea48c29.tar.gz |
Revert "Remove no-longer-needed upstream patches"
This reverts commit 4a5e25fad6693afda89b3826f73e83d826618863.
Diffstat (limited to 'debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch')
-rw-r--r-- | debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch b/debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch new file mode 100644 index 0000000..219d13a --- /dev/null +++ b/debian/patches/0028-Avoid-a-possible-NULL-pointer-dereference.patch @@ -0,0 +1,22 @@ +From: Gaurav <g.gupta@samsung.com> +Date: Tue, 18 Feb 2014 11:47:43 +0800 +Subject: Avoid a possible NULL pointer dereference + +For https://bugzilla.gnome.org/show_bug.cgi?id=708355 +--- + xmlmodule.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xmlmodule.c b/xmlmodule.c +index 7fe5bc2..50ed666 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"); |