aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4renewd.c
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-10-06 15:42:18 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-10-06 15:42:18 -0400
commitf4373bf9e67e4a653c8854acd7b02dac9714c98a (patch)
treed0371ed7638c0939550a2a43aef5b384d2e96b48 /fs/nfs/nfs4renewd.c
parentNFS: Fix port initialisation in nfs_remount() (diff)
downloadlinux-dev-f4373bf9e67e4a653c8854acd7b02dac9714c98a.tar.xz
linux-dev-f4373bf9e67e4a653c8854acd7b02dac9714c98a.zip
nfs: Avoid overrun when copying client IP address string
As seen in <http://bugs.debian.org/549002>, nfs4_init_client() can overrun the source string when copying the client IP address from nfs_parsed_mount_data::client_address to nfs_client::cl_ipaddr. Since these are both treated as null-terminated strings elsewhere, the copy should be done with strlcpy() not memcpy(). Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4renewd.c')
0 files changed, 0 insertions, 0 deletions