[Lldb-commits] [PATCH] D122283: [lldb] Add a Stream variant that escapes null bytes

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 22 21:19:22 PDT 2022


JDevlieghere created this revision.
JDevlieghere added reviewers: jingham, labath.
Herald added a project: All.
JDevlieghere requested review of this revision.

In D122025 <https://reviews.llvm.org/D122025> Jim suggested that we should sanitize the input to the command return object to retain the guarantee that we don't have null bytes in the output. This patch implements that through a Stream wrapper that escapes null bytes.


https://reviews.llvm.org/D122283

Files:
  lldb/include/lldb/Interpreter/CommandReturnObject.h
  lldb/include/lldb/Utility/Stream.h
  lldb/unittests/Utility/StreamTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122283.417485.patch
Type: text/x-patch
Size: 3041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220323/2caf8c5f/attachment.bin>


More information about the lldb-commits mailing list