]> granicus.if.org Git - clang/commit
Add experimental clang/driver flag -fsanitize-address-field-padding=N
authorKostya Serebryany <kcc@google.com>
Thu, 9 Oct 2014 17:53:04 +0000 (17:53 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 9 Oct 2014 17:53:04 +0000 (17:53 +0000)
commit4cdae708987963d75db8e91d4a1c19754b7625c2
tree7040e8d7258fbea01b34893719cad391818b10d7
parent6f64a3a5c86c341c65de13d3cd154d5e84c0c5fa
Add experimental clang/driver flag -fsanitize-address-field-padding=N

Summary:
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 is being reviewed at http://reviews.llvm.org/D5687

Test Plan: Build and run SPEC, LLVM Bootstrap, Chrome with this flag.

Reviewers: samsonov

Reviewed By: samsonov

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5676

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219417 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
include/clang/Driver/Options.td
include/clang/Driver/SanitizerArgs.h
lib/Driver/SanitizerArgs.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/fsanitize.c