aboutsummaryrefslogtreecommitdiff
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2013-05-24 07:40:04 -0400
committerBen Hutchings <ben@decadent.org.uk>2013-06-19 02:16:39 +0100
commit4a762b7f53a5e6bd6f6568b904ffcf2fd1811ef5 (patch)
treeba84cee2c21304189f9846ce2fd1a94acaae35d5 /fs/sysfs/file.c
parent71eac9d144bec44c29340b0d9905bcba3f4128e6 (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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/sysfs/file.c')
0 files changed, 0 insertions, 0 deletions