summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>2022-02-01 13:44:03 +0000
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>2022-02-02 16:32:10 +0000
commit438a81a2847f615c8c6236b59096393c9d285e00 (patch)
treeee61f86b9c3fbc860f2851b2afa4602cec52032c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent116c1bea65ac268bc46a2373220c81d02fc0a256 (diff)
[Function Specialisation] Fix use after free
This is a fix for a use-after-free found by the address sanitizer when compiling GCC: https://github.com/llvm/llvm-project/issues/52821 The Function Specialization pass may remove instructions, cached inside the PredicateBase class, which are later being dereferenced from the SCCPInstVisitor class. To prevent the dangling references I am lazily deleting the dead instructions after the Solver has run. Differential Revision: https://reviews.llvm.org/D118591
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions