diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-10-11 05:39:55 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-11 05:39:55 -0700 |
| commit | ac26cbd76d8f30304ef6790dbf631cb2da5b5cc3 (patch) | |
| tree | 90250ee7ec420075b0224cbaa0b1eac7799511b1 /include/linux/sunrpc/cache.h | |
| parent | 4ed45520b182781c862793c96d15aeb450bb4170 (diff) | |
[PATCH] kNFSd: decode symlink inplace to avoid modifying request
Rather than possibly modifying a request (as
xdr_decode_string can) we use xdr_decode_string_inplace
to symlink contents. This string may not be nul terminated
(though it often is) so in the 'unlikely' event that is isn't
nul terminated, we copy it into a kmalloced space first.
It might be nice if vfs_symlink took a length, but then every
filesystem would have to as well....
Diffstat (limited to 'include/linux/sunrpc/cache.h')
0 files changed, 0 insertions, 0 deletions
