Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8febdd85 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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 <yang.y.yi@gmail.com>

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8b90db0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment