[scudo] Initialize the allocator in setTrackAllocationStacks.
authorEvgenii Stepanov <eugenis@google.com>
Wed, 29 Apr 2020 21:41:48 +0000 (14:41 -0700)
committerEvgenii Stepanov <eugenis@google.com>
Thu, 30 Apr 2020 00:01:58 +0000 (17:01 -0700)
commit7a555958f111094df4336209fd05522d07c483b0
tree0126fabab27fa5a436286a037b9613e7caf29638
parent0752d98ccf8771b41718170d46d11f4020b62818
[scudo] Initialize the allocator in setTrackAllocationStacks.

Summary:
If this is called before the malloc call in a thread (or in the whole
program), the lazy initialization of the allocation can overwrite
Options.

Reviewers: pcc, cryptoad

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D79130
compiler-rt/lib/scudo/standalone/combined.h