History log of /freebsd-10-stable/contrib/smbfs/lib/smb/nbns_rq.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 335781 28-Jun-2018 brooks

MFC r335641:

Fix a stack overflow in mount_smbfs when hostname is too long.

The local hostname was blindly copied into the to the nn_name array.
When the hostname exceeded 16 bytes, it would overflow. Truncate the
hostname to 15 bytes plus a 0 terminator which is the "workstation name"
suffix.

Use defensive strlcpy() when filling nn_name in all cases.

PR: 228354
Reported by: donald.buchholz@intel.com
Reviewed by: jpaetzel, ian (prior version)
Discussed with: Security Officer (gtetlow)
Security: Stack overflow with the hostname.
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15936


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 150802 02-Oct-2005 bp

Allow user to override default port numbers used by communication
protocols. This is very useful for tunneled SMB connections.

MFC after: 4 weeks


# 87867 14-Dec-2001 sheldonh

This commit was generated by cvs2svn to compensate for changes in r87866,
which included commits to RCS files with non-trunk default branches.


# 87866 14-Dec-2001 sheldonh

Import smbfs-1.4.1.

This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.

Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/