Skip to content

Commit 4004f65

Browse files
committed
[LLDB][NativePDB] Fix use-after-free error detected by asan.
1 parent e78a1f4 commit 4004f65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,8 @@ void SymbolFileNativePDB::BuildParentMap() {
22652265
}
22662266
for (TypeIndex fwd : fwd_keys) {
22672267
TypeIndex full = forward_to_full[fwd];
2268-
m_parent_types[full] = m_parent_types[fwd];
2268+
TypeIndex parent_idx = m_parent_types[fwd];
2269+
m_parent_types[full] = parent_idx;
22692270
}
22702271
for (TypeIndex full : full_keys) {
22712272
TypeIndex fwd = full_to_forward[full];

0 commit comments

Comments
 (0)