From: Ben Hutchings Date: Tue, 6 Oct 2009 19:42:18 +0000 (-0400) Subject: nfs: Avoid overrun when copying client IP address string X-Git-Tag: v2.6.32-rc4~22^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4373bf9e67e4a653c8854acd7b02dac9714c98a;p=pandora-kernel.git nfs: Avoid overrun when copying client IP address string As seen in , 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed