From 5ae8aea1ecd60c439121d3329d8eaabf13d292c1 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 1 Mar 2011 13:11:35 +0100 Subject: [PATCH] Fix buffer overflow when processing list of controllers from command line (CVE-2011-1006). Thanks to Nelson Elhage for reporting this issue. Signed-off-by: Jan Safranek --- src/tools/tools-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c index 4beffcd3..7d633be4 100644 --- a/src/tools/tools-common.c +++ b/src/tools/tools-common.c @@ -79,7 +79,7 @@ int parse_cgroup_spec(struct cgroup_group_spec **cdptr, char *optarg, } } j++; - } while (temp); + } while (temp && jpath, pathptr, FILENAME_MAX); -- 2.47.2