diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-08-07 09:08:44 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-08-07 09:08:44 +0000 |
commit | 285e20603ef2a5d5bd617723e6066d8869054e04 (patch) | |
tree | c0ee5db6288ce0c93133ac7bb08b600d0d73f21c /lib | |
parent | 41d1b5e1df6c57b85e21d94c59f711f1d6a573ce (diff) |
[asan] Return sizeof missed by r309914
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asan/asan_malloc_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_malloc_linux.cc b/lib/asan/asan_malloc_linux.cc index a094d6eec..8222c6d70 100644 --- a/lib/asan/asan_malloc_linux.cc +++ b/lib/asan/asan_malloc_linux.cc @@ -32,7 +32,7 @@ static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize]; static INLINE bool IsInDlsymAllocPool(const void *ptr) { uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym; - return off < allocated_for_dlsym; + return off < sizeof(alloc_memory_for_dlsym); } static void *AllocateFromLocalPool(uptr size_in_bytes) { |