[compiler-rt] r310244 - [asan] Return sizeof missed by r309914
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 02:08:44 PDT 2017
Author: vitalybuka
Date: Mon Aug 7 02:08:44 2017
New Revision: 310244
URL: http://llvm.org/viewvc/llvm-project?rev=310244&view=rev
Log:
[asan] Return sizeof missed by r309914
Modified:
compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
Modified: compiler-rt/trunk/lib/asan/asan_malloc_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_malloc_linux.cc?rev=310244&r1=310243&r2=310244&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_malloc_linux.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_malloc_linux.cc Mon Aug 7 02:08:44 2017
@@ -32,7 +32,7 @@ static uptr alloc_memory_for_dlsym[kDlsy
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) {
More information about the llvm-commits
mailing list