diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-05-24 07:40:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-07 12:53:04 -0700 |
commit | 661926a0a9594143ed7f189521d8b8c848f480c7 (patch) | |
tree | dbd98e96ac5eeba40a87ded979ebea2effa4a836 /fs/binfmt_som.c | |
parent | 968678e436eb6cf11c09068b24acfdffc7f48891 (diff) |
cifs: fix potential buffer overrun when composing a new options string
commit 166faf21bd14bc5c5295a44874bf7f3930c30b20 upstream.
Consider the case where we have a very short ip= string in the original
mount options, and when we chase a referral we end up with a very long
IPv6 address. Be sure to allow for that possibility when estimating the
size of the string to allocate.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/binfmt_som.c')
0 files changed, 0 insertions, 0 deletions