diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-12-04 18:00:24 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2017-12-04 18:00:24 +0000 |
commit | c73d1e28f1c2880ed86fa6c24e75025c1605b91c (patch) | |
tree | 3ce5982a65bf3195d386d8ae11acc96cb56fc06e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e00cd0c40843acbc7126bb6bbc5afd1a57c81a1c (diff) | |
download | llvm-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