aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2021-09-23 11:31:33 +0200
committerPavel Labath <pavel@labath.sk>2021-09-23 12:30:18 +0200
commit5685eb950da7c6901c8b264a3c93e8ea63b34d3d (patch)
treeb450f3a3a02762f7d71b34208f1b77cd6bc1ce63 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parente7c879a69d6b61f35969936a9efd46bcfbf80ca0 (diff)
downloadllvm-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