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
Showing
- include/clang/Basic/LangOptions.h 3 additions, 0 deletionsinclude/clang/Basic/LangOptions.h
- include/clang/Driver/Options.td 3 additions, 0 deletionsinclude/clang/Driver/Options.td
- include/clang/Driver/SanitizerArgs.h 1 addition, 0 deletionsinclude/clang/Driver/SanitizerArgs.h
- lib/Driver/SanitizerArgs.cpp 13 additions, 1 deletionlib/Driver/SanitizerArgs.cpp
- lib/Frontend/CompilerInvocation.cpp 3 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- test/Driver/fsanitize.c 11 additions, 0 deletionstest/Driver/fsanitize.c
Loading
Please register or sign in to comment