From 93cf87b7baf5093c729f74f7e1c4be2a94880dbe Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 18 Oct 2015 19:39:27 -0500 Subject: [PATCH] wimlib_get_image_property(): forbid NULL or empty property names --- src/xml.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.43.0