commit | 1a0c0ffa9db515b9129b1086cdcf308ff342a519 | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Mon Apr 08 21:58:36 2019 +0000 |
committer | Adrian Prantl <aprantl@apple.com> | Mon Apr 08 21:58:36 2019 +0000 |
tree | d526f3b8b0cd981d1314080118257061bcc53343 | |
parent | 941f247d30c447903107aa614ea46fb1e4019698 [diff] |
Fix a stack buffer overflow found by ASAN. llvm::StringRef host_and_port is not guaranteed to be null-terminated. Generally, it is not safe at all to convert a StringRef into a char * by calling data() on it. <rdar://problem/49698580> llvm-svn: 357948