aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-12-04 18:00:24 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-12-04 18:00:24 +0000
commitc73d1e28f1c2880ed86fa6c24e75025c1605b91c (patch)
tree3ce5982a65bf3195d386d8ae11acc96cb56fc06e /clang/lib/Frontend/CompilerInvocation.cpp
parente00cd0c40843acbc7126bb6bbc5afd1a57c81a1c (diff)
downloadllvm-c73d1e28f1c2880ed86fa6c24e75025c1605b91c.zip
llvm-c73d1e28f1c2880ed86fa6c24e75025c1605b91c.tar.gz
llvm-c73d1e28f1c2880ed86fa6c24e75025c1605b91c.tar.bz2
[ASan] Enhance libsanitizer support for invalid-pointer-pair.
Following patch adds support of all memory origins in CheckForInvalidPointerPair function. For small difference of pointers, it's directly done in shadow memory (the limit was set to 2048B). Then we search for origin of first pointer and verify that the second one has the same origin. If so, we verify that it points either to a same variable (in case of stack memory or a global variable), or to a same heap segment. Committing on behanf of marxin and jakubjelinek. Reviewers: alekseyshl, kcc Subscribers: llvm-commits Differential revision: https://reviews.llvm.org/D40600 llvm-svn: 319668
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions