asan: fix overflows in isSafeAccess
authorDmitry Vyukov <dvyukov@google.com>
Mon, 16 Mar 2015 08:04:26 +0000 (08:04 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 16 Mar 2015 08:04:26 +0000 (08:04 +0000)
commit828c4066dd736e4b87944a51b6a569f994b47dc9
tree141567a675a05975fcba3fce0e70045a5fc5f724
parent56150f27240f52f227e545ba6397415495276422
asan: fix overflows in isSafeAccess

As pointed out in http://reviews.llvm.org/D7583
The current checks can cause overflows when object size/access offset cross Quintillion bytes.

http://reviews.llvm.org/D8193

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232358 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp