summaryrefslogtreecommitdiffstats
path: root/lib/crc16.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-12-30 17:18:53 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-30 17:18:53 -0800
commit8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c (patch)
tree2e1aaa5e4e68057a4e96a606e2ad0bcccedcd6df /lib/crc16.c
parent8b90db0df7187a01fb7177f1f812123138f562cf (diff)
downloadop-kernel-dev-8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c.zip
op-kernel-dev-8febdd85adaa41fa1fc1cb31286210fc2cd3ed0c.tar.gz
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: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/crc16.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud