[PATCH] Insert poisoned paddings between fields in C++ classes.

Kostya Serebryany kcc at google.com
Tue Oct 14 18:24:01 PDT 2014


Addressed most of the comments in the review, added tests,
moved the check for validity of the instrumentation to RecordDecl::MayInsertExtraPadding,
added a remark flag -Rsanitize-address.

PTAL

This CL still has one FIXME pending Alexey's changes for -fsanitize-blacklist flag.

http://reviews.llvm.org/D5687

Files:
  include/clang/AST/Decl.h
  include/clang/Basic/DiagnosticFrontendKinds.td
  include/clang/Basic/DiagnosticGroups.td
  lib/AST/Decl.cpp
  lib/AST/RecordLayoutBuilder.cpp
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/sanitize-address-field-padding.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5687.14907.patch
Type: text/x-patch
Size: 14468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141015/a2bc06e9/attachment.bin>


More information about the cfe-commits mailing list