aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2023-06-27 00:18:33 -0700
committerCaroline Tice <cmtice@google.com>2023-06-28 11:46:55 -0700
commitee476996bec7f170928505a4c5b7715183cfbada (patch)
tree9f7b67758cc5a08fd10911bddbf3f3bf59e12b22 /llvm/lib/CodeGen/MachineFunction.cpp
parent015cd317eaed28a923d14a33c9d6739012a688be (diff)
downloadllvm-ee476996bec7f170928505a4c5b7715183cfbada.zip
llvm-ee476996bec7f170928505a4c5b7715183cfbada.tar.gz
llvm-ee476996bec7f170928505a4c5b7715183cfbada.tar.bz2
[LLDB] Fix buffer overflow problem in DWARFExpression::Evaluate.
In two calls to ReadMemory in DWARFExpression.cpp, the buffer size passed to ReadMemory is not actually the size of the buffer (I suspect a copy/paste error where the variable name was not properly updated). This caused a buffer overflow bug, which we found throuth Address Sanitizer. This patch fixes the problem by passing the correct buffer size to the calls to ReadMemory (and to the DataExtractor). Differential Revision: https://reviews.llvm.org/D153840
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions