diff options
author | Augusto Noronha <anoronha@apple.com> | 2025-10-08 15:35:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-08 15:35:24 -0700 |
commit | 397181d5c191cf2f7ba3b4408383da6e5a149052 (patch) | |
tree | b7764eb692e0ae6f9acbda95ad9eb23bd092cf4e /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 4e6ee0b674cb84422d78e0cf0416754660f38972 (diff) | |
download | llvm-397181d5c191cf2f7ba3b4408383da6e5a149052.zip llvm-397181d5c191cf2f7ba3b4408383da6e5a149052.tar.gz llvm-397181d5c191cf2f7ba3b4408383da6e5a149052.tar.bz2 |
[lldb] Fix use after free on ModuleList::RemoveSharedModuleIfOrphaned (#155331)
This fixes a potential use after free where
ModuleList::RemoveSharedModuleIfOrphaned ->
SharedModuleList::RemoveIfOrphaned -> SharedModuleList::RemoveFromMap
would potentially dereference a freed pointer. This fixes it by not
calling ModuleList::RemoveSharedModuleIfOrphaned at all if the pointer
was just freed.
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions