Skip to content

Commit

Permalink
Fix use after free during cleanup of split dwarf information, fixes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jul 3, 2024
1 parent b930289 commit 611660d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/symbols/dwarf/dwarf_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ namespace libdwarf {
}
// subprograms_cache needs to be destroyed before dbg otherwise there will be another use after free
subprograms_cache.clear();
split_full_cu_resolvers.clear();
skeleton.reset();
if(aranges) {
dwarf_dealloc(dbg, aranges, DW_DLA_LIST);
}
Expand Down

0 comments on commit 611660d

Please sign in to comment.