summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2016-05-23 05:38:40 +0000
committertruckman <truckman@FreeBSD.org>2016-05-23 05:38:40 +0000
commit7856d15f596ed863e4a8879a8da4e58857a00ddb (patch)
tree326eeb40adb540708201ca93b051b4030ffe53ca /contrib/libc++/src
parentbb2ef25b411476485d46375b034eaacc5b95a975 (diff)
downloadFreeBSD-src-7856d15f596ed863e4a8879a8da4e58857a00ddb.zip
FreeBSD-src-7856d15f596ed863e4a8879a8da4e58857a00ddb.tar.gz
MFC r299988
Set ai2 to NULL in in find_host() before the loop and after calling freeaddrinfo() on it to indicate that it doesn't point to a valid addrinfo list. This fixes this Coverity issues: 1006368 Uninitialized pointer read 1018506 Double free 1305590 Resource leak that can be triggered in the hp->hostname[0] != '\0' case. Don't treat a character as a boolean. Fix these Coverity issues: 1009293 Unchecked return value from library 1194246 Wrong size argument by tweaking the status file extend code. Reported by: Coverity CID: 1006368, 1018506, 1305590, 1009293, 1194246 Reviewed by: rmacklem Feedback from: hrs Differential Revision: https://reviews.freebsd.org/D6398
Diffstat (limited to 'contrib/libc++/src')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud