]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[CIFS] Maximum username length check in session setup does not match
authorSteve French <sfrench@us.ibm.com>
Sat, 6 Feb 2010 07:08:53 +0000 (07:08 +0000)
committerSteve French <sfrench@us.ibm.com>
Sat, 6 Feb 2010 07:08:53 +0000 (07:08 +0000)
commit301a6a317797ca362951ea21da397c05236f0070
tree14742eb9a7fe51b854a1a6bd6f3efa89c53aa51e
parentf12f98dba6ea1517cd7fbb912208893b9c014c15
[CIFS] Maximum username length check in session setup does not match

Fix length check reported by D. Binderman (see below)

d binderman <dcb314@hotmail.com> wrote:
>
> I just ran the sourceforge tool cppcheck over the source code of the
> new Linux kernel 2.6.33-rc6
>
> It said
>
> [./cifs/sess.c:250]: (error) Buffer access out-of-bounds

May turn out to be harmless, but best to be safe. Note max
username length is defined to 32 due to Linux (Windows
maximum is 20).

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/sess.c