Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
- Loading branch information