]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
conf: fix run_script_argv()
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 16 Feb 2018 21:04:35 +0000 (22:04 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 16 Feb 2018 21:04:35 +0000 (22:04 +0100)
commit327cce76ad2f435e84b7d53e64a1e0a5edbd568b
tree6abdf9e215d5f97150ca9339dd0a2b2d3ddf13d7
parent47d4e397da6c23cb1793a39d1dab149b6d376236
conf: fix run_script_argv()

Make sure that we allocate the buffer **after** we determined how much space we
need in total.
This fixes a SIGBUS/SIGSEGV Stéphane reported on aarch64 and armf.

Reported-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c