From cb823f6a1911f8516e6e04830e28c2d4dec61c8d Mon Sep 17 00:00:00 2001 From: Alex Shlyapnikov Date: Thu, 29 Jun 2017 21:54:37 +0000 Subject: [PATCH] [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 llvm-svn: 306747 --- compiler-rt/lib/lsan/lsan_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/lsan/lsan_allocator.cc b/compiler-rt/lib/lsan/lsan_allocator.cc index f54e953731b4..b867643b6086 100644 --- a/compiler-rt/lib/lsan/lsan_allocator.cc +++ b/compiler-rt/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) {