summaryrefslogtreecommitdiff
path: root/lib/msan/msan.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-12-12 20:07:35 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-12-12 20:07:35 +0000
commit615a96827869f87d4e163d2c3e6786ca5cdb18ff (patch)
treefc15017b0af4393b5905f0ec0215fb2bb1b96e86 /lib/msan/msan.h
parent42bcd70673d86f6bb07affff1b42b4647efbe99d (diff)
[Sanitizer] Introduce Allocator::may_return_null bool flag.
Summary: Turn "allocator_may_return_null" common flag into an Allocator::may_return_null bool flag. We want to make sure that common flags are immutable after initialization. There are cases when we want to change this flag in the allocator at runtime: e.g. in unit tests and during ASan activation on Android. Test Plan: regression test suite, real-life applications Reviewers: kcc, eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6623 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.h')
-rw-r--r--lib/msan/msan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/msan/msan.h b/lib/msan/msan.h
index 9bc1e4c6a..acfed2c44 100644
--- a/lib/msan/msan.h
+++ b/lib/msan/msan.h
@@ -125,6 +125,7 @@ char *GetProcSelfMaps();
void InitializeInterceptors();
void MsanAllocatorThreadFinish();
+void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size);
void *MsanReallocate(StackTrace *stack, void *oldp, uptr size,
uptr alignment, bool zeroise);
void MsanDeallocate(StackTrace *stack, void *ptr);