diff options
author | Enrico Granata <egranata@apple.com> | 2016-05-25 23:19:01 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-05-25 23:19:01 +0000 |
commit | fee0aba00626744bd099cb4872f02379808fae2b (patch) | |
tree | 48631d0e9eed8b36b45e20c0bd64f87d05d5d8c5 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py | |
parent | 5d122f872d5bb9164ae58eb5f79bbed2ede3f605 (diff) | |
download | bcm5719-llvm-fee0aba00626744bd099cb4872f02379808fae2b.tar.gz bcm5719-llvm-fee0aba00626744bd099cb4872f02379808fae2b.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py')
0 files changed, 0 insertions, 0 deletions