[PATCH] Add experimental clang/driver flag -fsanitize-address-field-padding=N

Kostya Serebryany kcc at google.com
Wed Oct 8 11:50:55 PDT 2014


Hi samsonov,

This change adds an experimental flag -fsanitize-address-field-padding=N (0, 1, 2)
to clang and driver. With this flag ASAN will be able to detect some cases of
intra-object-overflow bugs,
see https://code.google.com/p/address-sanitizer/wiki/IntraObjectOverflow

There is no actual functionality here yet, just the flag parsing.
The functionality will be sent for review separately.

http://reviews.llvm.org/D5676

Files:
  include/clang/Basic/LangOptions.h
  include/clang/Driver/Options.td
  include/clang/Driver/SanitizerArgs.h
  lib/Driver/SanitizerArgs.cpp
  lib/Frontend/CompilerInvocation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5676.14587.patch
Type: text/x-patch
Size: 3817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141008/b36bc37f/attachment.bin>


More information about the cfe-commits mailing list