aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
diff options
context:
space:
mode:
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2023-03-30 06:04:28 -0400
committerMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2023-03-30 06:44:23 -0400
commit42ae055b4c9282050636dd11198cad500424adf2 (patch)
treefbcef1b70c14141c1c75406fbe8f56eb4143f641 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
parentefd34ba60f3839b0a68b2e32ff9011b6823bc16f (diff)
downloadllvm-42ae055b4c9282050636dd11198cad500424adf2.zip
llvm-42ae055b4c9282050636dd11198cad500424adf2.tar.gz
llvm-42ae055b4c9282050636dd11198cad500424adf2.tar.bz2
[NFC] Fix potential for use-after-free in DumpModuleInfoAction
Since each `DumpModuleInfoAction` can now contain a pointer to a `raw_ostream`, saving there a poiter that owned by a local `unique_ptr` may cause use-after-free. Clarify ownership and save a `shared_ptr` inside of `DumpModuleInfoAction` instead. Found by static analyzer. Reviewed By: tahonermann, aaron.ballman Differential Revision: https://reviews.llvm.org/D146412
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
0 files changed, 0 insertions, 0 deletions