From: Linus Torvalds Date: Sat, 31 Dec 2005 01:18:53 +0000 (-0800) Subject: sysctl: don't overflow the user-supplied buffer with '\0' X-Git-Tag: v2.6.15~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c;p=pandora-kernel.git sysctl: don't overflow the user-supplied buffer with '\0' If the string was too long to fit in the user-supplied buffer, the sysctl layer would zero-terminate it by writing past the end of the buffer. Don't do that. Noticed by Yi Yang Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed