summaryrefslogtreecommitdiffstats
path: root/net/9p/client.c
diff options
context:
space:
mode:
authorJim Meyering2012-08-21 09:20:49 +0200
committerEric Van Hensbergen2012-09-06 20:54:53 +0200
commitba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (patch)
tree616525a5d4954660f290f9130c699002571c05e4 /net/9p/client.c
parentLinux 3.6-rc4 (diff)
downloadkernel-qcow2-linux-ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494.tar.gz
kernel-qcow2-linux-ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494.tar.xz
kernel-qcow2-linux-ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494.zip
fs/9p: avoid debug OOPS when reading a long symlink
Reading a symlink longer than the given buffer, a p9_debug use would try to print the link name (not NUL-terminated) using a %s format. Use %.*s instead, and replace the strncpy+strnlen with functionally equivalent strlen+memcpy. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/client.c')
0 files changed, 0 insertions, 0 deletions