The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2547
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Initialize buf to avoid parsing random data later on. Signed-off-by: Christian Brauner <[email protected]>
From 0044aab02aca5bb358eee719d00a48384aa590b9 Mon Sep 17 00:00:00 2001 From: Christian Brauner <[email protected]> Date: Sat, 18 Aug 2018 11:56:05 +0200 Subject: [PATCH] tools: fix lxc-execute command parsing Initialize buf to avoid parsing random data later on. Signed-off-by: Christian Brauner <[email protected]> --- src/lxc/tools/lxc_execute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/tools/lxc_execute.c b/src/lxc/tools/lxc_execute.c index 32911b7fc..8e69f7244 100644 --- a/src/lxc/tools/lxc_execute.c +++ b/src/lxc/tools/lxc_execute.c @@ -129,6 +129,7 @@ static bool set_argv(struct lxc_container *c, struct lxc_arguments *args) char buf[MAXPATHLEN]; char **components, **p; + buf[0] = '\0'; ret = c->get_config_item(c, "lxc.execute.cmd", buf, MAXPATHLEN); if (ret < 0) return false;
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
