aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorTed Woodward <tedwood@quicinc.com>2021-09-16 18:40:09 -0500
committerTed Woodward <tedwood@quicinc.com>2021-09-23 17:03:47 -0500
commit953ddded1aa2b459a939e0f1649691c9086ba416 (patch)
tree6dfd5396f88d9fa50d57bd7d890b8e8f724b8077 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentd83ca624a1d52b600ddbd8bfcbb3d5d7c6003af7 (diff)
downloadllvm-953ddded1aa2b459a939e0f1649691c9086ba416.zip
llvm-953ddded1aa2b459a939e0f1649691c9086ba416.tar.gz
llvm-953ddded1aa2b459a939e0f1649691c9086ba416.tar.bz2
[lldb] Handle malformed qfThreadInfo reply
If the remote gdbserver's qfThreadInfo reply has a trailing comma, GDBRemoteCommunicationClient::GetCurrentProcessAndThreadIDs will return an empty vector of thread ids. This will cause lldb to recurse through three functions trying to get the list of threads, until it blows its stack and crashes. A trailing comma is a malformed response, but it shouldn't cause lldb to crash. This patch will return the tids received before the malformed response. Reviewed By: clayborg, labath Differential Revision: https://reviews.llvm.org/D109937
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions