cifs: check offset in decode_ntlmssp_challenge()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 31 Jan 2012 08:52:01 +0000 (11:52 +0300)
committerSteve French <smfrench@gmail.com>
Tue, 31 Jan 2012 13:42:06 +0000 (07:42 -0600)
commit4991a5faab7368daac463181e786608b4eb63675
treede09a9fbbfae716c5dc2cb57a1f83a0460a8c8f4
parent803ab977618eae2b292cda0a97eed75f42250ddf
cifs: check offset in decode_ntlmssp_challenge()

We should check that we're not copying memory from beyond the end of the
blob.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/sess.c