[Bug 228354] mount_smbfs - long hostname causes stack overflow
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 20 20:18:48 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228354
Aleksandr Ivanov <haron86 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |haron86 at gmail.com
--- Comment #8 from Aleksandr Ivanov <haron86 at gmail.com> ---
Due to NetBIOS name limitations (the NetBIOS name of the computer is limited 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).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list