summaryrefslogtreecommitdiff
path: root/lib/lsan
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-06-29 21:54:37 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-06-29 21:54:37 +0000
commit2cd50a16aec00d8d739ff8a8f669027fef286c1d (patch)
tree9a890be3ac3f2f8bcba1a468ffcec0f5910a6888 /lib/lsan
parentdb318dfe3724c49f4a628715745799bc7e63e6f5 (diff)
[Sanitizers] Rename CallocShouldReturnNullDueToOverflow to CheckForCallocOverflow
Summary: Due to changes in semantics, CheckForCallocOverflow makes much more sense now. Reviewers: eugenis Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D34799 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@306747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan')
-rw-r--r--lib/lsan/lsan_allocator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsan/lsan_allocator.cc b/lib/lsan/lsan_allocator.cc
index f54e95373..b867643b6 100644
--- a/lib/lsan/lsan_allocator.cc
+++ b/lib/lsan/lsan_allocator.cc
@@ -135,7 +135,7 @@ void *lsan_realloc(void *p, uptr size, const StackTrace &stack) {
void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack) {
size *= nmemb;
- return Allocate(stack, size, 1, true);
+ return Allocate(stack, size, 1, true /**/);
}
void *lsan_valloc(uptr size, const StackTrace &stack) {