[PATCH] D16702: [cfi] Safe handling of unaddressable vtable pointers.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 17:36:37 PST 2016


eugenis created this revision.
eugenis added reviewers: pcc, kcc.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.

This change attempts to safely check the cast validity, even when
vtable itself, or its typeinfo object, are unaddressable. The check
is quite slow (requires a system call), so we only do this when an
error is already detected to avoid slowing down the vptr sanitizer.

Repository:
  rL LLVM

http://reviews.llvm.org/D16702

Files:
  lib/ubsan/ubsan_type_hash_itanium.cc
  test/cfi/cross-dso/target_out_of_bounds.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16702.46329.patch
Type: text/x-patch
Size: 6452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160129/4c216b80/attachment.bin>


More information about the llvm-commits mailing list