]> granicus.if.org Git - llvm/commit
[asan] Add options -asan-detect-invalid-pointer-cmp and -asan-detect-invalid-pointer...
authorPierre Gousseau <pierregousseau14@gmail.com>
Thu, 28 Mar 2019 10:51:24 +0000 (10:51 +0000)
committerPierre Gousseau <pierregousseau14@gmail.com>
Thu, 28 Mar 2019 10:51:24 +0000 (10:51 +0000)
commitd12f22c35af1bbd40d13204d4711fc274101c3a8
treeee6bb1475c39c4bea0906fa46a669e78989309a0
parent3259337afd5a31e93fb99816966ff004b4303be2
[asan] Add options -asan-detect-invalid-pointer-cmp and -asan-detect-invalid-pointer-sub options.

This is in preparation to a driver patch to add gcc 8's -fsanitize=pointer-compare and -fsanitize=pointer-subtract.
Disabled by default as this is still an experimental feature.

Reviewed By: morehouse, vitalybuka

Differential Revision: https://reviews.llvm.org/D59220

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/asan-detect-invalid-pointer-pair.ll [new file with mode: 0644]