diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2022-07-15 15:12:46 +0200 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2022-07-15 15:20:48 +0200 |
commit | 76910d4a56c8dba000f198bba13e71cf0492c8cb (patch) | |
tree | 1b9411567dce82b09e8cc9112b7cd5e03b06be93 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | ec5f18e38afa93f238456f56e5d8b9a1bd44ec12 (diff) | |
download | llvm-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