Skip to content

Commit

Permalink
[Sanitizers] Rename CallocShouldReturnNullDueToOverflow to CheckForCa…
Browse files Browse the repository at this point in the history
…llocOverflow

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
  • Loading branch information
alekseyshl committed Jun 29, 2017
1 parent 93c1a8c commit cb823f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/lsan/lsan_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cb823f6

Please sign in to comment.