diff options
author | Kuba Mracek <mracek@apple.com> | 2018-07-24 16:19:06 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2018-07-24 16:19:06 +0000 |
commit | 3ac94fe6137e5d5123b064b03084ea7a0bd0f5ff (patch) | |
tree | 928d2f9702196b4131370ed35a57925ebdfdd23e /lib/fuzzer/FuzzerDriver.cpp | |
parent | 37bd9aa510166186a9bba5cf13d717d6b097c95e (diff) |
[tsan] Fix crash in objc_sync_enter/objc_sync_exit when using an Obj-C tagged pointer
Objective-C tagged pointers (either bottom-most or top-most bit is 1) are valid Obj-C objects but are not valid pointers. Make sure we don't crash on them when used in objc_sync_enter/objc_sync_exit. Instead, let's synchronize on a global object.
Differential Revision: https://reviews.llvm.org/D49707
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerDriver.cpp')
0 files changed, 0 insertions, 0 deletions