diff options
author | 2015-08-25 17:14:16 +0000 | |
---|---|---|
committer | 2015-08-25 17:14:16 +0000 | |
commit | 8c6c1aa43591d074996d5415b265e6fd3a30eeb0 (patch) | |
tree | 3b3823b9f87195e0c9c3effd726338520b101de2 /lib/libc | |
parent | catch up (diff) | |
download | wireguard-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