diff options
author | Adrian Prantl <aprantl@apple.com> | 2022-06-17 09:26:01 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2022-06-17 09:26:01 -0700 |
commit | f000de8760c112ead0487a020c3849c6280f2a57 (patch) | |
tree | 2fdab7894dbd506194a3813ad5ee0a436ecd5751 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp | |
parent | c2bb2e5973acd24c45c1823e95e8e33003c59484 (diff) | |
download | llvm-f000de8760c112ead0487a020c3849c6280f2a57.zip llvm-f000de8760c112ead0487a020c3849c6280f2a57.tar.gz llvm-f000de8760c112ead0487a020c3849c6280f2a57.tar.bz2 |
[LLDB][ExpressionParser] Fix indices inside format-strings passed to LLDB_LOG
llvm::formatv expects the parameter indexes to start with 0.
Unfortunately it doesn't detect out-of-bounds accesses in the format
string at compile-time, of which we had several inside ClangExpressionDeclMap.
This patch fixes these out-of-bounds format accesses.
Example output
Before
ClangExpressionDeclMap::FindExternalVisibleDecls for '$__lldb_class' in a
'TranslationUnit'
CEDM::FEVD Searching the root namespace
CEDM::FEVD Adding type for $__lldb_class: 1
After
ClangExpressionDeclMap::FindExternalVisibleDecls for '$__lldb_class' in
a 'TranslationUnit'
CEDM::FEVD Searching the root namespace
CEDM::FEVD Adding type for $__lldb_class: class (lambda)
Patch by Michael Buch!
Differential Revision: https://reviews.llvm.org/D128063
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions