[PATCH] Implement CFI type checks for non-virtual calls.

Peter Collingbourne peter at pcc.me.uk
Tue Mar 31 19:09:33 PDT 2015


Hi kcc, jfb,

This uses the same class metadata currently used for virtual call and
cast checks.

The new flag is -fsanitize=cfi-nvcall. For consistency, the -fsanitize=cfi-vptr
flag has been renamed -fsanitize=cfi-vcall.

http://reviews.llvm.org/D8756

Files:
  docs/ControlFlowIntegrity.rst
  docs/UsersManual.rst
  include/clang/Basic/Sanitizers.def
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CGExprCXX.cpp
  lib/CodeGen/CGVTables.cpp
  lib/CodeGen/ItaniumCXXABI.cpp
  lib/Driver/SanitizerArgs.cpp
  test/CodeGenCXX/cfi-nvcall.cpp
  test/CodeGenCXX/cfi-vcall.cpp
  test/CodeGenCXX/cfi-vptr.cpp
  test/Driver/fsanitize.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8756.23024.patch
Type: text/x-patch
Size: 11938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150401/2cf21717/attachment.bin>


More information about the cfe-commits mailing list