https://github.com/torvalds/linux
Revision 8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c authored by Linus Torvalds on 31 December 2005, 01:18:53 UTC, committed by Linus Torvalds on 31 December 2005, 01:18:53 UTC
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 <yang.y.yi@gmail.com>

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 8b90db0
History
Tip revision: 8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c authored by Linus Torvalds on 31 December 2005, 01:18:53 UTC
sysctl: don't overflow the user-supplied buffer with '\0'
Tip revision: 8febdd8
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 391 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 63.8 KB
Makefile -rw-r--r-- 42.8 KB
README -rw-r--r-- 14.7 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top