]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Use correct type in buffer length calculations
authorChuck Lever <chuck.lever@oracle.com>
Wed, 26 Sep 2007 18:38:10 +0000 (14:38 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:20:30 +0000 (17:20 -0400)
commite373733e7cfd4f20d49bf077fcf3cbd32f317a55
treea33db52992e4f916618d629eef94dd811e7d42b1
parent7793ef943f4e8c0ca31bf1f1a6545afd6781a573
SUNRPC: Use correct type in buffer length calculations

Use correct type signage in gss_krb5_remove_padding() when doing length
calculations.  Both xdr_buf.len and iov.iov_len are size_t, which is
unsigned; so use an unsigned type for our temporary length variable to
ensure we don't overflow it..

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/gss_krb5_wrap.c