[lldb/API] Fix non null-terminated stop-reason in SBThread::GetStopDescription
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 5 Feb 2020 23:15:37 +0000 (00:15 +0100)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 5 Feb 2020 23:20:33 +0000 (00:20 +0100)
commit42c906bceffaadeb704f2629d21f33aece831bc6
tree042c8a507b2ecf1785cb4d4606d8c83508b583ea
parentbab993451e74af688bafb8806768a34882f6b66e
[lldb/API] Fix non null-terminated stop-reason in SBThread::GetStopDescription

When trying to get the stop reason description using the SB API, the
buffer fetched was not null-terminated causing failures on the sanitized bot.

This patch should address those failures.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/source/API/SBThread.cpp