diff options
| author | Ashay Rane <ashay@users.noreply.github.com> | 2023-04-24 08:01:33 -0500 |
|---|---|---|
| committer | Ashay Rane <ashay@users.noreply.github.com> | 2023-04-24 10:37:06 -0500 |
| commit | ff2e6199b23525b06947785368cc3e2e93eab381 (patch) | |
| tree | 6e7e19202d89aea96da01627bc5d6cb127c446a9 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPlatformPythonInterface.cpp | |
| parent | be93256655def7026166865859b54082ef579363 (diff) | |
[clang] remove dereferencing of invalid pointer
A line in the demangling code for float literals dereferences the
`.end()` iterator, which causes the Windows debug build of llvm-cxxfilt
to crash. The failure can be reproduced by passing the string
`_Z5dummyIXtl8wrapper1IdEtlNS1_Ut_Edi9RightNametlNS2_Ut_ELd405ec00000000000EEEEEEvv`
to `llvm-cxxfilt -n`.
This patch rewrites the code to use the `.size()` member of the
string_view type to avoid dereferencing past the buffer.
Reviewed By: DavidSpickett
Differential Revision: https://reviews.llvm.org/D149061
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPlatformPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
