summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-04-11 14:57:34 +0000
committerPavel Labath <pavel@labath.sk>2019-04-11 14:57:34 +0000
commitd7e12574c61c2fed887963dff543bdb30258c416 (patch)
treec8e667d85f99954bdbd6a82a2f225e321aa96cc5 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parent34686b6e97550970729a14f977f5dc85ddf73e8a (diff)
downloadbcm5719-llvm-d7e12574c61c2fed887963dff543bdb30258c416.tar.gz
bcm5719-llvm-d7e12574c61c2fed887963dff543bdb30258c416.zip
YAMLIO: Fix serialization of strings with embedded nuls
Summary: A bug/typo in Output::scalarString caused us to round-trip a StringRef through a const char *. This meant that any strings with embedded nuls were unintentionally cut short at the first such character. (It also could have caused accidental buffer overruns, but it seems that all StringRefs coming into this functions were formed from null-terminated strings.) This patch fixes the bug and adds an appropriate test. Reviewers: sammccall, jhenderson Subscribers: kristina, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60505 llvm-svn: 358176
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud