summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-03-11 10:34:57 +0000
committerPavel Labath <pavel@labath.sk>2019-03-11 10:34:57 +0000
commit7bfa8ea9de45f51d77a2ee5d90f159e012627a9f (patch)
tree93973b02b84449d950c3b34d2e688baec1b34827 /lldb/packages/Python/lldbsuite
parent9318db0fa1992dbfdcad543105b0e38a4df6efc9 (diff)
downloadbcm5719-llvm-7bfa8ea9de45f51d77a2ee5d90f159e012627a9f.tar.gz
bcm5719-llvm-7bfa8ea9de45f51d77a2ee5d90f159e012627a9f.zip
Fix invalid use of StringRef::data in Socket::DecodeHostAndPort
the input StringRef is not guaranteed to be null-terminated, so using data to get the c string is wrong. Luckily, in two of the usages the target function already accepts a StringRef so we can just drop the data() call, and the third one is easily replaced by a stringref-aware function. Issue found by msan. llvm-svn: 355817
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud