diff options
author | Jim Meyering <jim@meyering.net> | 2012-08-21 07:20:49 (GMT) |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2012-09-06 18:54:53 (GMT) |
commit | ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (patch) | |
tree | 616525a5d4954660f290f9130c699002571c05e4 /net/9p | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff) | |
download | linux-fsl-qoriq-ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494.tar.xz |
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