[Lldb-commits] [PATCH] D133790: Fix heap-use-after-free when clearing DIEs in fission compile units.
Jordan Rupprecht via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 14 06:53:00 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1f3def30ca86: Fix heap-use-after-free when clearing DIEs in fission compile units. (authored by rupprecht).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133790/new/
https://reviews.llvm.org/D133790
Files:
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
Index: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
+++ lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
@@ -598,7 +598,7 @@
m_die_array.clear();
m_die_array.shrink_to_fit();
- if (m_dwo)
+ if (m_dwo && !m_dwo->m_cancel_scopes)
m_dwo->ClearDIEsRWLocked();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133790.460069.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220914/3eb8c662/attachment.bin>
More information about the lldb-commits
mailing list