diff options
author | 2016-02-05 11:26:26 +0000 | |
---|---|---|
committer | 2016-02-05 11:26:26 +0000 | |
commit | 48c0231f5d7651e047cf8ba2636afd4e07fd6d95 (patch) | |
tree | c1d7a8295f0e3d5c874bbe0baade342864fb03fd /lib | |
parent | Simple moderation of Tx completion notifications (diff) | |
download | wireguard-openbsd-48c0231f5d7651e047cf8ba2636afd4e07fd6d95.tar.xz wireguard-openbsd-48c0231f5d7651e047cf8ba2636afd4e07fd6d95.zip |
rtadvd used a strncpy with a src interface name from the command line
without checking its length. Replace it with strlcpy, check for
truncation and move the check before using the user-specified
interface name. While here, replace another strncpy of a interface
name with memset-zero + strlcpy and check for truncation in
if_getmtu() (should not happen as we validated the length before, but
it's better to be safe and generally a better practice).
OK jsg@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions