summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/regex/test_regex.h
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-02-10 03:22:00 +0000
committerngie <ngie@FreeBSD.org>2017-02-10 03:22:00 +0000
commit5ae3442aab834c5c20f000ca90857d98a5a26ee8 (patch)
tree1c7b68d0bc3f0de65c5736a6f3eccea1125a939c /contrib/netbsd-tests/lib/libc/regex/test_regex.h
parent296c0a47df924de84504bcea39176e06b502b604 (diff)
downloadFreeBSD-src-5ae3442aab834c5c20f000ca90857d98a5a26ee8.zip
FreeBSD-src-5ae3442aab834c5c20f000ca90857d98a5a26ee8.tar.gz
MFC r311233,r311377:
r311233: Fix Coverity issues - Initialize .sun_len before passing it to strlcpy and bind. - Close fd on error CID: 978283, 979581 r311377: Redo fix for CID 979581 The previous change was flawed in terms of how it calculated the buffer length for the sockaddr_un object. Use SUN_LEN where appropriate and mute the Coverity complaint by using memset(.., 0, ..) to zero out the entire structure instead of setting .sun_len to a bogus value and strlcpy'ing in the contents of argv[1]. SUN_LEN is now being passed to bind(2) as well. For some odd reason this wasn't flagged as a bug with Coverity.
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/regex/test_regex.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud