diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-20 07:14:03 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-20 07:14:03 +0000 |
commit | f13286bea2a5de0abb600bc6528987f21cf48a28 (patch) | |
tree | 3e038bc7fe446feadcd22c7c9f50fd13b9c32a55 /contrib/libc++/src/exception.cpp | |
parent | 00907751d3c26492362b736e80ab0d8a3106cc24 (diff) | |
download | FreeBSD-src-f13286bea2a5de0abb600bc6528987f21cf48a28.zip FreeBSD-src-f13286bea2a5de0abb600bc6528987f21cf48a28.tar.gz |
MFC r299873
Use strlcpy() instead of strncpy() when copying ifname to ensure
that it is NUL terminated. Additional NUL padding is not required
for short names.
Use sizeof(destination) in a few places instead of IFNAMSIZ.
Cast afp->af_ridreq and afp->af_addreq to make the intent of
the code more obvious.
Reported by: Coverity
CID: 1009628, 1009630, 1009631, 1009632, 1009633, 1009635, 1009638
CID: 1009639, 1009640, 1009641, 1009642, 1009643, 1009644, 1009645
CID: 1009646, 1009647, 1010049, 1010050, 1010051, 1010052, 1010053
CID: 1010054, 1011293, 1011294, 1011295, 1011296, 1011297, 1011298
CID: 1011299, 1305821, 1351720, 1351721
Diffstat (limited to 'contrib/libc++/src/exception.cpp')
0 files changed, 0 insertions, 0 deletions