From: Eric Biggers Date: Mon, 19 Oct 2015 00:39:27 +0000 (-0500) Subject: wimlib_get_image_property(): forbid NULL or empty property names X-Git-Tag: v1.8.3~51 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=93cf87b7baf5093c729f74f7e1c4be2a94880dbe wimlib_get_image_property(): forbid NULL or empty property names --- diff --git a/src/xml.c b/src/xml.c index e29030c6..f7d694d0 100644 --- a/src/xml.c +++ b/src/xml.c @@ -1388,6 +1388,8 @@ wimlib_get_image_property(const WIMStruct *wim, int image, const xmlChar *name; const tchar *value; + if (!property_name || !*property_name) + return NULL; if (tstr_get_utf8(property_name, &name)) return NULL; value = get_image_property(wim, image, name, NULL);