diff options
author | Pavel Labath <pavel@labath.sk> | 2021-09-23 11:31:33 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2021-09-23 12:30:18 +0200 |
commit | 5685eb950da7c6901c8b264a3c93e8ea63b34d3d (patch) | |
tree | b450f3a3a02762f7d71b34208f1b77cd6bc1ce63 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | e7c879a69d6b61f35969936a9efd46bcfbf80ca0 (diff) | |
download | llvm-5685eb950da7c6901c8b264a3c93e8ea63b34d3d.zip llvm-5685eb950da7c6901c8b264a3c93e8ea63b34d3d.tar.gz llvm-5685eb950da7c6901c8b264a3c93e8ea63b34d3d.tar.bz2 |
[lldb] Fix DomainSocket::GetSocketName for unnamed sockets
getpeername will return addrlen = 2 (sizeof sa_family_t) for unnamed
sockets (those not assigned a name with bind(2)). This is typically true
for client sockets as well as those created by socketpair(2).
This GetSocketName used to crash for sockets which were connected to
these kinds of sockets. Now it returns an empty string.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions