]> git.ipfire.org Git - thirdparty/lxc.git/commit
Process command line is null terminated
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 4 Feb 2015 12:02:02 +0000 (14:02 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 8 Feb 2015 16:08:39 +0000 (18:08 +0200)
commit96fe6d1d9c1e2db233a3c4501b5beaabd4d54209
treeff52aa1690994edf1b2b86cc8c5f079a4598444f
parenta61848fe21a883720b3bf078c6ac7c2afe338030
Process command line is null terminated

It turns out the process command line is in fact null terminated on the stack;
this caused a bug where when the new process title was smaller than the old
one, the first environment entry would be rendered as part of the process
title.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utils.c