cifs: writing past end of struct in cifs_convert_address()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Mar 2012 07:06:52 +0000 (10:06 +0300)
committerSteve French <sfrench@us.ibm.com>
Sat, 31 Mar 2012 22:32:18 +0000 (17:32 -0500)
commit2545e0720a5a4bf8ebccc6f793f97a246cf3f18d
tree377dc4e2bc40e93189f44a3e48515a50722e31c5
parentb2a3ad9ca502169fc4c11296fa20f56059c7c031
cifs: writing past end of struct in cifs_convert_address()

"s6->sin6_scope_id" is an int bits but strict_strtoul() writes a long
so this can corrupt memory on 64 bit systems.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/netmisc.c