diff options
author | Vy Nguyen <vyng@google.com> | 2025-09-18 10:43:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-18 10:43:42 -0400 |
commit | 09e0f1e035b348e2cd694e5f4b943a78cb6ad639 (patch) | |
tree | 7b16f49f1b07368554d8b353a8275defc46ef9a5 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 4f72abd8404efa3de32188429d5f079ad12264e3 (diff) | |
download | llvm-09e0f1e035b348e2cd694e5f4b943a78cb6ad639.zip llvm-09e0f1e035b348e2cd694e5f4b943a78cb6ad639.tar.gz llvm-09e0f1e035b348e2cd694e5f4b943a78cb6ad639.tar.bz2 |
[LLDB]Fix buffer-over-flow bug introduced in 157170 (#159588)
If `pr_name` is longer than 16, it would be a non-null terminated
string. Assigning it to `std::string m_executable_name` would cause an
overflow read. Instead, just copy the name from thread_data.name.
To repro, run the `elf-core/TestLinuxCore.py` with asan
(Question: why is the new variable needed in the first place? can't the
thread_data.name be used?)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions