Date: Thu, 10 Feb 2011 00:20:56 +0000 (UTC) From: Max Laier <mlaier@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern uipc_usrreq.c Message-ID: <201102100021.p1A0LHWc002042@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mlaier 2011-02-10 00:20:56 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/kern uipc_usrreq.c
Log:
SVN rev 218502 on 2011-02-10 00:20:56Z by mlaier
MFH: r180238
Use bcopy instead of strlcpy in uipc_bind and unp_connect, since
soun->sun_path isn't a null-terminated string. As UNIX(4) states, "the
terminating NUL is not part of the address." Since strlcpy has to return
"the total length of the string [it] tried to create," it walks off the
end of soun->sun_path looking for a \0.
This reverts r105332.
Revision Changes Path
1.206.2.12 +4 -2 src/sys/kern/uipc_usrreq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102100021.p1A0LHWc002042>
