summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw/common
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2008-07-03 23:26:10 +0000
committeremaste <emaste@FreeBSD.org>2008-07-03 23:26:10 +0000
commit240825654b391ec4881cb7faaeaae4ec983bb980 (patch)
treedacc78ee8dca28200324cec99bfde5c5e2d313b8 /sys/boot/ofw/common
parenta47dd1888d3c3115651e4eb66c821d2bd55fd087 (diff)
downloadFreeBSD-src-240825654b391ec4881cb7faaeaae4ec983bb980.zip
FreeBSD-src-240825654b391ec4881cb7faaeaae4ec983bb980.tar.gz
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. Reported by: Ryan Stone
Diffstat (limited to 'sys/boot/ofw/common')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud