Bug#549002: [PATCH] nfs: Avoid overrun when copying client IP address string

2009-10-04 Thread Ben Hutchings
On Sun, 2009-10-04 at 18:33 -0400, Trond Myklebust wrote: > On Sun, 2009-10-04 at 14:25 +0100, Ben Hutchings wrote: > > As seen in , nfs4_init_client() can > > overrun the source string when copying the client IP address from > > nfs_parsed_mount_data::client_address

Bug#549002: [PATCH] nfs: Avoid overrun when copying client IP address string

2009-10-04 Thread Trond Myklebust
On Sun, 2009-10-04 at 14:25 +0100, Ben Hutchings wrote: > 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-

Bug#549002: [PATCH] nfs: Avoid overrun when copying client IP address string

2009-10-04 Thread Ben Hutchings
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 strlc