From: Evgeny Kuznetsov Date: Wed, 27 Oct 2010 22:33:37 +0000 (-0700) Subject: cgroups: add check for strcpy destination string overflow X-Git-Tag: v2.6.37-rc1~85^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a2589feaef0a9b737a3e582b37ee96695bb25f;p=pandora-kernel.git cgroups: add check for strcpy destination string overflow Function "strcpy" is used without check for maximum allowed source string length and could cause destination string overflow. Check for string length is added before using "strcpy". Function now is return error if source string length is more than a maximum. akpm: presently considered NotABug, but add the check for general future-safeness and robustness. Signed-off-by: Evgeny Kuznetsov Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed