diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-20 07:18:33 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-20 07:18:33 +0000 |
commit | 3e7c4636cf83666cd3ab3b82895524105920a1d3 (patch) | |
tree | cb04a2d6ace178de8da90f89d1df4afdcd6fa90a /contrib/libc++/src/algorithm.cpp | |
parent | f13286bea2a5de0abb600bc6528987f21cf48a28 (diff) | |
download | FreeBSD-src-3e7c4636cf83666cd3ab3b82895524105920a1d3.zip FreeBSD-src-3e7c4636cf83666cd3ab3b82895524105920a1d3.tar.gz |
MFC r299879, r299880
r299879 | truckman | 2016-05-15 18:30:32 -0700 (Sun, 15 May 2016) | 7 lines
Likely a false positive ... but make sure that -1 can't be used as an
array index by splitting up a test.
r299880 | truckman | 2016-05-15 18:38:24 -0700 (Sun, 15 May 2016) | 8 lines
Since rdata is only used as an argument to the immediately following
call to res_nopt_rdata(), revert r299879 and fix CID 603941 by moving
rdata = &buf[n];
inside the if block.
Reported by: Coverity
CID: 603941
Diffstat (limited to 'contrib/libc++/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions