aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorScott Linder <Scott.Linder@amd.com>2020-11-16 19:05:06 +0000
committerScott Linder <Scott.Linder@amd.com>2020-11-18 23:06:03 +0000
commit2980933d850b7506a1a96f8d11588b71956f4089 (patch)
tree3eb3c3e84e334204526759f3ec0f148de962cdf0 /lldb/source/Commands/CommandObjectThread.cpp
parent544cb649d7789a4199e8acea6e8a9da1409702b1 (diff)
downloadllvm-2980933d850b7506a1a96f8d11588b71956f4089.zip
llvm-2980933d850b7506a1a96f8d11588b71956f4089.tar.gz
llvm-2980933d850b7506a1a96f8d11588b71956f4089.tar.bz2
[YAMLIO] Support non-null-terminated inputs
In some places the parser guards against dereferencing `End`, while in others it relies on the presence of a trailing `'\0'` to elide checks. Add the remaining guards needed to ensure the parser never attempts to dereference `End`, making it safe to not require a null-terminated input buffer. Update the parser fuzzer harness so that it tests with buffers that are guaranteed to be non-null-terminated, null-terminated, and 1-terminated, additionally ensuring the result of the parse is the same in each case. Some of the regression tests were written by inspection, and some are cases caught by the fuzzer which required additional fixes in the parser. Differential Revision: https://reviews.llvm.org/D84050
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions