From: Christian Brauner Date: Tue, 5 Feb 2019 06:47:18 +0000 (+0100) Subject: lxc-unshare: remove stack allocations X-Git-Tag: lxc-3.2.0~164^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e2af15eddf452a177388cc2acce4e3262f050b;p=thirdparty%2Flxc.git lxc-unshare: remove stack allocations Signed-off-by: Christian Brauner --- 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