diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-01-25 05:12:35 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-01-25 05:12:35 +0000 |
commit | bbef40189627bd68922c4c36c9025bf91bd3f27d (patch) | |
tree | 6d91867919d6dc15f49984bd5dde36950d78ef23 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | |
parent | 4411528461b193b24bdfeff95105dc1f7d81c5dc (diff) | |
download | llvm-bbef40189627bd68922c4c36c9025bf91bd3f27d.zip llvm-bbef40189627bd68922c4c36c9025bf91bd3f27d.tar.gz llvm-bbef40189627bd68922c4c36c9025bf91bd3f27d.tar.bz2 |
Change DataExtractor's ReadInt* and ReadSwapInt* routines, as well as
GetU32 and GetU64, to use memcpy to copy bytes into a local buffer instead
of having a (uint64_t *) etc local variable, pointing to the address, and
dereferencing it. If compiled on a CPU where data alignment is required
(e.g. the LDM instruction on armv7) and we try to GetU64 out of a mmap'ed
DWARF file, that 8 byte quantity may not be world aligned and the program
can get an unaligned memory access fault.
<rdar://problem/15849231>
llvm-svn: 200069
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h')
0 files changed, 0 insertions, 0 deletions