summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2016-06-02 18:36:12 +0000
committerIvan Krasin <krasin@chromium.org>2016-06-02 18:36:12 +0000
commit048155c399a97c31b1b1bf1f99ed12f30dd9c441 (patch)
tree76d3fd71a5ae9d894d124d2a163426cf3f42f311 /llvm/lib/Support/Threading.cpp
parent63f78b020636d8a486f24564bc2255656f9c71f7 (diff)
downloadbcm5719-llvm-048155c399a97c31b1b1bf1f99ed12f30dd9c441.tar.gz
bcm5719-llvm-048155c399a97c31b1b1bf1f99ed12f30dd9c441.zip
UBSan: crash less often on corrupted Vtables.
Summary: This CL adds a weak check for a Vtable prefix: for a well-formed Vtable, we require the prefix to be within [-1<<20; 1<<20]. Practically, this solves most of the known cases when UBSan segfaults without providing any useful diagnostics. Reviewers: pcc Subscribers: kubabrecka Differential Revision: http://reviews.llvm.org/D19750 llvm-svn: 271560
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud