[Lldb-commits] [lldb] [lldb] Fix use-after-free in jThreadsInfo stop info cache (PR #223488)
Augusto Noronha via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 14 13:00:05 PDT 2026
================
@@ -1685,9 +1684,10 @@ size_t ProcessGDBRemote::UpdateThreadPCsFromStopReplyThreadsValue(
bool ProcessGDBRemote::UpdateThreadIDList() {
std::lock_guard<std::recursive_mutex> guard(m_thread_list_real.GetMutex());
- if (m_jthreadsinfo_sp) {
+ StructuredData::ObjectSP threads_info_sp = *m_jthreadsinfo.Lock();
----------------
augusto2112 wrote:
Ah, I think the point is that the pointer will not be concurrently written/read right?
https://github.com/llvm/llvm-project/pull/223488
More information about the lldb-commits
mailing list