Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 20:18:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 228354] mount_smbfs - long hostname causes stack overflow
Message-ID:  <bug-228354-3630-GGdqJlTjWX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228354-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228354-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228354

Aleksandr Ivanov <haron86@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haron86@gmail.com

--- Comment #8 from Aleksandr Ivanov <haron86@gmail.com> ---
Due to NetBIOS name limitations (the NetBIOS name of the computer is limite=
d to
15 bytes), it is better to cut the long hostnames when copying from
smb_ctx.ct_locname to nb_name.nn_name. Just replace strcpy with strncpy
(nn.nb_name, ctx->ct_locname, NB_NAMELEN).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228354-3630-GGdqJlTjWX>