From 57e2af15eddf452a177388cc2acce4e3262f050b Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 5 Feb 2019 07:47:18 +0100 Subject: [PATCH] lxc-unshare: remove stack allocations Signed-off-by: Christian Brauner --- src/lxc/tools/lxc_unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_unshare.c b/src/lxc/tools/lxc_unshare.c index f9a6969f8..1bc04ce92 100644 --- a/src/lxc/tools/lxc_unshare.c +++ b/src/lxc/tools/lxc_unshare.c @@ -398,7 +398,7 @@ int main(int argc, char *argv[]) if (my_args.setuid) { uint64_t wait_val = 1; /* enough space to accommodate uids */ - char *umap = (char *)alloca(100); + char umap[100]; /* create new uid mapping using current UID and the one * specified as parameter -- 2.47.2