[lxc-devel] [lxc/lxc] 107090: cgm_get: make sure @value is null-terminated
GitHub
noreply at github.com
Fri Jun 27 18:52:53 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 107090814711dbafa6047ead07c4dec17499a517
https://github.com/lxc/lxc/commit/107090814711dbafa6047ead07c4dec17499a517
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2014-06-27 (Fri, 27 Jun 2014)
Changed paths:
M src/lxc/cgmanager.c
Log Message:
-----------
cgm_get: make sure @value is null-terminated
Previously this was done by strncpy, but now we just read
the len bytes - not including \0 - from a pipe, so pre-fill
@value with 0s to be safe.
This fixes the python3 api_test failure.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list