diff options
author | Jim Meyering <jim@meyering.net> | 2012-08-21 09:20:49 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2012-09-06 13:54:53 -0500 |
commit | ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (patch) | |
tree | 616525a5d4954660f290f9130c699002571c05e4 /net/9p | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff) | |
download | linux-rt-ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494.tar.gz |
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')
0 files changed, 0 insertions, 0 deletions