From 611660de5bbf86bc1c81c0a88a7fe51e27d2100e Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 2 Jul 2024 21:56:35 -0600 Subject: [PATCH] Fix use after free during cleanup of split dwarf information, fixes #141 --- src/symbols/dwarf/dwarf_resolver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/symbols/dwarf/dwarf_resolver.cpp b/src/symbols/dwarf/dwarf_resolver.cpp index 7627cd6..1c47a17 100644 --- a/src/symbols/dwarf/dwarf_resolver.cpp +++ b/src/symbols/dwarf/dwarf_resolver.cpp @@ -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); }