Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information