git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b90db0
)
sysctl: don't overflow the user-supplied buffer with '\0'
author
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 31 Dec 2005 01:18:53 +0000
(17:18 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 31 Dec 2005 01:18:53 +0000
(17:18 -0800)
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>
No differences found