diff options
author | Vedant Kumar <vsk@apple.com> | 2017-06-15 18:23:16 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-06-15 18:23:16 +0000 |
commit | f7e804157ee3b91f020bd5b3abc941e45a698d34 (patch) | |
tree | 44a2a655fd81afe7bc2c7f7652908064f3448cf7 /clang/unittests/Basic/VirtualFileSystemTest.cpp | |
parent | 00a970a84be572db73fda75659a52e4dac50d99c (diff) | |
download | llvm-f7e804157ee3b91f020bd5b3abc941e45a698d34.zip llvm-f7e804157ee3b91f020bd5b3abc941e45a698d34.tar.gz llvm-f7e804157ee3b91f020bd5b3abc941e45a698d34.tar.bz2 |
[ubsan] Fix a faulty memory accessibility check
The dynamic type check needs to inspect vtables, but could crash if it
encounters a vtable pointer to inaccessible memory. In the first attempt
to fix the issue (r304437), we performed a memory accessibility check on
the wrong range of memory. This should *really* fix the problem.
Patch by Max Moroz!
Differential Revision: https://reviews.llvm.org/D34215
llvm-svn: 305489
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions