From 2cd50a16aec00d8d739ff8a8f669027fef286c1d Mon Sep 17 00:00:00 2001 From: Alex Shlyapnikov Date: Thu, 29 Jun 2017 21:54:37 +0000 Subject: [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 --- lib/lsan/lsan_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lsan') 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) { -- cgit v1.2.3