summaryrefslogtreecommitdiff
path: root/fs/hfs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-04-27 17:25:51 (GMT)
committerSteve French <sfrench@us.ibm.com>2011-04-29 04:57:39 (GMT)
commitfcda7f4578bbf9717444ca6da8a421d21489d078 (patch)
tree5cf2fc99c067eb49f410ad095ca2cabec2fe86ac /fs/hfs
parentbfacf2225a955bea9c41c707fc72ba16009674a0 (diff)
downloadlinux-fcda7f4578bbf9717444ca6da8a421d21489d078.tar.xz
cifs: check for bytes_remaining going to zero in CIFS_SessSetup
It's possible that when we go to decode the string area in the SESSION_SETUP response, that bytes_remaining will be 0. Decrementing it at that point will mean that it can go "negative" and wrap. Check for a bytes_remaining value of 0, and don't try to decode the string area if that's the case. Cc: stable@kernel.org Reported-and-Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions