[PATCH] D16824: [cfi] Safe handling of unaddressable vtable pointers (compiler-rt).

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 14:18:28 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.

Avoid crashing when printing diagnostics for vtable-related CFI
errors. In diagnostic mode, the frontend does an additional check of
the vtable pointer against the set of all known vtable addresses and
lets the runtime handler know if it is safe to inspect the vtable.

Repository:
  rL LLVM

http://reviews.llvm.org/D16824

Files:
  lib/cfi/cfi.cc
  lib/ubsan/ubsan_handlers.cc
  lib/ubsan/ubsan_handlers.h
  lib/ubsan/ubsan_handlers_cxx.cc
  test/cfi/cross-dso/target_out_of_bounds.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16824.46704.patch
Type: text/x-patch
Size: 6999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160202/59b4a078/attachment.bin>


More information about the llvm-commits mailing list