[scudo] Zero- and pattern-initialization of memory.
authorEvgenii Stepanov <eugenis@google.com>
Wed, 29 Apr 2020 21:39:23 +0000 (14:39 -0700)
committerEvgenii Stepanov <eugenis@google.com>
Thu, 30 Apr 2020 22:00:55 +0000 (15:00 -0700)
commit45b7d44ecb01780e26dc8d3c30bc34e32c08dd70
tree196f2673caf7e2bb01edcfa4b1fd13e00c40d3eb
parent6937251f013f8a4709e4f9ca957381c3b762b509
[scudo] Zero- and pattern-initialization of memory.

Summary:
Implement pattern initialization of memory (excluding the secondary
allocator because it already has predictable memory contents).
Expose both zero and pattern initialization through the C API.

Reviewers: pcc, cryptoad

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D79133
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/flags.inc
compiler-rt/lib/scudo/standalone/secondary.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
compiler-rt/lib/scudo/standalone/wrappers_c.inc