llvm-project/lldb/source
Enrico Granata fee0aba006 It has been brought to my attention that, given two variables
T x;
U y;

doing

x = *((T*)y)

is undefined behavior, even if sizeof(T) == sizeof(U), due to pointer aliasing rules

Fix up a couple of places in LLDB that were doing this, and transform them into a defined and safe memcpy() operation

Also, add a test case to ensure we didn't regress by doing this w.r.t. tagged pointer NSDate instances

llvm-svn: 270793
2016-05-25 23:19:01 +00:00
..
API SBValue::CreateValueFromData didn’t check whether the SBType passed into it is in fact a valid type - this can lead to LLDB crashing upon access 2016-05-23 17:11:14 +00:00
Breakpoint second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Commands second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Core Add logging to ValueObjectSyntheticFilter such that one can trace through the creation of synthetic children 2016-05-25 21:38:32 +00:00
DataFormatters remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Expression remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Host second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Initialization remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Interpreter second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Plugins It has been brought to my attention that, given two variables 2016-05-25 23:19:01 +00:00
Symbol Add support for arm64 compact unwind tables, used on darwin arm64 2016-05-25 04:20:28 +00:00
Target Lock out Process::RunThreadPlan so only one can be in flight at a time. 2016-05-24 18:29:36 +00:00
Utility Skip leading spaces when decoding hex values 2016-05-24 18:19:45 +00:00
CMakeLists.txt Add initial CMake glue for the NetBSD platform 2015-10-24 00:27:04 +00:00
lldb.cpp Add more NetBSD platform glue for lldb 2015-11-07 15:31:54 +00:00