aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2022-07-15 15:12:46 +0200
committerHaojian Wu <hokein.wu@gmail.com>2022-07-15 15:20:48 +0200
commit76910d4a56c8dba000f198bba13e71cf0492c8cb (patch)
tree1b9411567dce82b09e8cc9112b7cd5e03b06be93 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
parentec5f18e38afa93f238456f56e5d8b9a1bd44ec12 (diff)
downloadllvm-76910d4a56c8dba000f198bba13e71cf0492c8cb.zip
llvm-76910d4a56c8dba000f198bba13e71cf0492c8cb.tar.gz
llvm-76910d4a56c8dba000f198bba13e71cf0492c8cb.tar.bz2
[pseudo] Share the underly payload when stripping comments for a token stream
`stripComments(cook(...))` is a common pattern being written. Without this patch, this has a use-after-free issue (cook returns a temporary TokenStream object which has its own payload, but the payload is not shared with the one returned by stripComments). Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D125311
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
0 files changed, 0 insertions, 0 deletions