diff options
author | Martin Pelikan <martin.pelikan@gmail.com> | 2018-01-19 13:18:40 +0000 |
---|---|---|
committer | Martin Pelikan <martin.pelikan@gmail.com> | 2018-01-19 13:18:40 +0000 |
commit | 4834bca106268ceae9259dac8c86d12e37f33cc5 (patch) | |
tree | ccc6ba4582248d31d8b9a4569652d312b00719ef /lldb/packages/Python/lldbsuite/test/expression_command/call-function/main.cpp | |
parent | 37d977bc688196fd48f471ead85ba524762e325b (diff) | |
download | bcm5719-llvm-4834bca106268ceae9259dac8c86d12e37f33cc5.tar.gz bcm5719-llvm-4834bca106268ceae9259dac8c86d12e37f33cc5.zip |
[XRay] [compiler-rt] fix heap overflow by computing record pointers correctly
Summary:
While there, unify InMemoryRawLog and InMemoryRawLogWithArg's coding style:
- swap libc's memcpy(3) for sanitizer's internal memcpy
- use basic pointer arithmetics to compute offsets from the first record
entry in the pre-allocated buffer, which is always the appropriate type
for the given function
- lose the local variable references as the TLD.* names fit just as well
Reviewers: eizan, kpw, dberris, dblaikie
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D42289
llvm-svn: 322941
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/main.cpp')
0 files changed, 0 insertions, 0 deletions