commit | 51857ecdd87928e4d8ca3d9589f32943e6db983c | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Thu Jan 26 20:14:08 2017 -0800 |
committer | Vedant Kumar <vsk@apple.com> | Thu Jan 26 20:29:39 2017 -0800 |
tree | 2689a9baf12568723d4987e614f9115d5162727c | |
parent | 888b98f21159c196f1cb9ced4d95cce1331453b1 [diff] |
[ubsan] Skip null check for "offsetof"-like computations When computing the address of a member expression, skip the null check on the base expression if it's a constant null pointer. This indicates that the null pointer is intentionally being manipulated to compute a field offset. rdar://problem/28992749 (cherry picked from commit 638fa2b35af426deff7e3b8f75d0be69df8f7130)