[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 12:55:37 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:
This doesn't actually keep `threads_info_sp` locked right? `*m_jthreadsinfo.Lock()` immediately releases the lock.
https://github.com/llvm/llvm-project/pull/223488
More information about the lldb-commits
mailing list