aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2014-12-22 17:32:27 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2014-12-22 17:32:27 +0000
commit742c4711429ed56b18c7c7729bed04462a4e3b37 (patch)
tree496df75c27692851e42287dc551e03745b1d3ab7 /clang/lib/Frontend/CompilerInvocation.cpp
parent090d33e393284af774e05840448fc7349332b631 (diff)
downloadllvm-742c4711429ed56b18c7c7729bed04462a4e3b37.zip
llvm-742c4711429ed56b18c7c7729bed04462a4e3b37.tar.gz
llvm-742c4711429ed56b18c7c7729bed04462a4e3b37.tar.bz2
AddressSanitizer: Abort after failed exec() and get rid of the allow_reexec ASan flag
As mentioned in https://code.google.com/p/address-sanitizer/issues/detail?id=365, when the re-exec that adds the required DYLD_INSERT_LIBRARIES variable fails, ASan currently continues to run, but things are broken (some memory can be overwritten, interceptors don't work, ...). This patch aborts if the execv() fails and prints an error message that DYLD_INSERT_LIBRARIES is required. It also removes the "alllow_reexec" flag, since using it causes the same issues. Reviewed at http://reviews.llvm.org/D6752 llvm-svn: 224712
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions