diff options
author | Evgenii Stepanov <eugenis@google.com> | 2020-05-07 16:22:21 -0700 |
---|---|---|
committer | Evgenii Stepanov <eugenis@google.com> | 2020-05-08 10:31:25 -0700 |
commit | eaea9ed83509d283db40aeeb324f2d4b235e816b (patch) | |
tree | c4127b481c37fe8cb0114641792370a41f11c73d /lldb/unittests/ScriptInterpreter/Python | |
parent | fcf10d19081029a0b6aa6933b72c63425425866a (diff) | |
download | llvm-eaea9ed83509d283db40aeeb324f2d4b235e816b.zip llvm-eaea9ed83509d283db40aeeb324f2d4b235e816b.tar.gz llvm-eaea9ed83509d283db40aeeb324f2d4b235e816b.tar.bz2 |
[hwasan] Reset current thread pointer on thread exit.
Summary:
This is necessary to handle calls to free() after __hwasan_thread_exit,
which is possible in glibc.
Also, add a null check to GetCurrentThread, otherwise the logic in
GetThreadByBufferAddress turns it into a non-null value. This means that
all of the checks for GetCurrentThread() != nullptr do not have any
effect at all right now!
Reviewers: pcc, hctim
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D79608
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions