forked from OSchip/llvm-project
acc48f3e1d
Summary: It's possible to hit an unaligned memory read when reading `source_length` as the `data` array is only aligned with 2 bytes (it's actually a UTF16 array). This patch memcpy's `source_length` into a local variable to prevent this: ``` MinidumpTypes.cpp:49:23: runtime error: load of misaligned address 0x7f0f4792692a for type 'const uint32_t' (aka 'const unsigned int'), which requires 4 byte alignment ``` Reviewers: dvlahovski, zturner, davide Reviewed By: davide Subscribers: davide, lldb-commits Differential Revision: https://reviews.llvm.org/D42348 llvm-svn: 323181 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
MinidumpParser.cpp | ||
MinidumpParser.h | ||
MinidumpTypes.cpp | ||
MinidumpTypes.h | ||
NtStructures.h | ||
ProcessMinidump.cpp | ||
ProcessMinidump.h | ||
RegisterContextMinidump_x86_32.cpp | ||
RegisterContextMinidump_x86_32.h | ||
RegisterContextMinidump_x86_64.cpp | ||
RegisterContextMinidump_x86_64.h | ||
ThreadMinidump.cpp | ||
ThreadMinidump.h |