summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-08-25 17:14:16 +0000
committerbluhm <bluhm@openbsd.org>2015-08-25 17:14:16 +0000
commit8c6c1aa43591d074996d5415b265e6fd3a30eeb0 (patch)
tree3b3823b9f87195e0c9c3effd726338520b101de2 /lib/libc
parentcatch up (diff)
downloadwireguard-openbsd-8c6c1aa43591d074996d5415b265e6fd3a30eeb0.tar.xz
wireguard-openbsd-8c6c1aa43591d074996d5415b265e6fd3a30eeb0.zip
strlcpy() accesses the source string until it finds NUL, even if
it is behind the size limit. As msg is not NUL-terminated in this case, it depended on memory content wether syslogd will crash. So using memcpy() and setting the NUL explicitly is the correct way. OK deraadt@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions