[compiler-rt] r306747 - [Sanitizers] Rename CallocShouldReturnNullDueToOverflow to CheckForCallocOverflow
Alex Shlyapnikov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 14:54:37 PDT 2017
Author: alekseyshl
Date: Thu Jun 29 14:54:37 2017
New Revision: 306747
URL: http://llvm.org/viewvc/llvm-project?rev=306747&view=rev
Log:
[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
Modified:
compiler-rt/trunk/lib/lsan/lsan_allocator.cc
Modified: compiler-rt/trunk/lib/lsan/lsan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_allocator.cc?rev=306747&r1=306746&r2=306747&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_allocator.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_allocator.cc Thu Jun 29 14:54:37 2017
@@ -135,7 +135,7 @@ void *lsan_realloc(void *p, uptr size, c
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) {
More information about the llvm-commits
mailing list