From: Ronan Pigott Date: Sun, 15 Sep 2024 03:21:39 +0000 (-0700) Subject: load-fragment: terminate the specifier table (#34421) X-Git-Tag: v257-rc1~443 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32b8065e876c6f89f55b1bb30eeb442d3921fb3a;p=thirdparty%2Fsystemd.git load-fragment: terminate the specifier table (#34421) Otherwise an invalid specifier iterates over uninitialized data. Fixes a bug introduced by 0b40688d1830abc6f59b1f1f67eccd757c23eb09 (v254). --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 7cb8648743c..d8fead1ca50 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -2728,6 +2728,7 @@ int config_parse_environ( COMMON_CREDS_SPECIFIERS(ltype), { 'h', specifier_user_home, NULL }, { 's', specifier_user_shell, NULL }, + {} }; for (const char *p = rvalue;; ) {