projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dffb9b
)
[asan] Return sizeof missed by r309914
author
Vitaly Buka
<vitalybuka@google.com>
Mon, 7 Aug 2017 09:08:44 +0000
(09:08 +0000)
committer
Vitaly Buka
<vitalybuka@google.com>
Mon, 7 Aug 2017 09:08:44 +0000
(09:08 +0000)
llvm-svn: 310244
compiler-rt/lib/asan/asan_malloc_linux.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/asan/asan_malloc_linux.cc
b/compiler-rt/lib/asan/asan_malloc_linux.cc
index
a094d6e
..
8222c6d
100644
(file)
--- a/
compiler-rt/lib/asan/asan_malloc_linux.cc
+++ b/
compiler-rt/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) {