summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-03-08 17:38:57 +0000
committerVedant Kumar <vsk@apple.com>2017-03-08 17:38:57 +0000
commit5c13623a69baed43b7f0cbf2912a3baa951285e2 (patch)
treea40c8c1bed57790b028f3a12d38572f7b26c51d3 /lldb/source/Core/Module.cpp
parent007c002cb6fbe9575041fc46c3007717c768a0ff (diff)
downloadbcm5719-llvm-5c13623a69baed43b7f0cbf2912a3baa951285e2.tar.gz
bcm5719-llvm-5c13623a69baed43b7f0cbf2912a3baa951285e2.zip
[ubsan] Detect UB loads from bitfields
It's possible to load out-of-range values from bitfields backed by a boolean or an enum. Check for UB loads from bitfields. This is the motivating example: struct S { BOOL b : 1; // Signed ObjC BOOL. }; S s; s.b = 1; // This is actually stored as -1. if (s.b == 1) // Evaluates to false, -1 != 1. ... Differential Revision: https://reviews.llvm.org/D30423 llvm-svn: 297298
Diffstat (limited to 'lldb/source/Core/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud