diff options
| author | Linus Torvalds <[email protected]> | 2005-12-31 01:18:53 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-12-31 01:18:53 +0000 |
| commit | 8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c (patch) | |
| tree | 2e1aaa5e4e68057a4e96a606e2ad0bcccedcd6df /Documentation/filesystems/configfs/configfs_example.c | |
| parent | Insanity avoidance in /proc (diff) | |
| download | kernel-8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c.tar.gz kernel-8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c.zip | |
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]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example.c')
0 files changed, 0 insertions, 0 deletions
