summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2023-03-19 18:41:04 +0100
committerMark de Wever <koraq@xs4all.nl>2023-03-19 18:42:22 +0100
commit61363445d46d72e2a6c8a821f4146c985404840d (patch)
tree4d7689aaab0e9e4bb77d1201860943e121fbf9a0 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp
parente657eb62559af2e1968ee77910db28d0bf2e3d01 (diff)
[libc++] Assert that lengths fit in difference_type
This can help flag accidentally passing in negative values into the `string_view` constructor. This aligns with a similar check in `absl::string_view`. Fixes https://github.com/llvm/llvm-project/issues/61100 Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D145981
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions