diff options
author | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2020-02-06 10:07:08 -0800 |
---|---|---|
committer | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2020-02-06 10:08:23 -0800 |
commit | 25de3f98b8a7436404dbc185040645f2549a8a8f (patch) | |
tree | 00b9adbf1230e50016d68176b5ee4761440d4ab9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b8f4e0a8234377cdac8740addfdabee339b12d2a (diff) | |
download | llvm-25de3f98b8a7436404dbc185040645f2549a8a8f.zip llvm-25de3f98b8a7436404dbc185040645f2549a8a8f.tar.gz llvm-25de3f98b8a7436404dbc185040645f2549a8a8f.tar.bz2 |
[GWP-ASan] Fix PRNG to use IE TLS.
Summary:
GWP-ASan's PRNG didn't use Initial-Exec TLS. Fix that to ensure that we don't
have infinite recursion, and also that we don't allocate a DTV on Android when
GWP-ASan is touched.
Test coverage ensuring that the sample counter is UINT32_MAX for an
uninitialised GWP-ASan is provided by gwp_asan/tests/late_init.cpp.
Reviewers: pcc, cferris
Reviewed By: pcc
Subscribers: #sanitizers, llvm-commits, rprichard, eugenis
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D74135
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions