diff options
author | Petr Hosek <phosek@chromium.org> | 2018-05-02 18:08:47 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-05-02 18:08:47 +0000 |
commit | 9213cbd62580dfe10db7bf7412f08b585c8a85ec (patch) | |
tree | 85daf652eccda5aa6c1c6653b27f533250f86890 /lib/sanitizer_common/sanitizer_allocator_local_cache.h | |
parent | 2b275a963cb299fa0782a6d0a529cbcf6a532476 (diff) |
[sanitizer] Fix Fuchsia ReadBinaryName not to crash when uninitialized
If the sanitizer runtime is loaded in a binary that doesn't really
support it, then __sanitizer_startup_hook will never have been
called to initialize StoredArgv. This case can't be supported, but
its failure mode shouldn't be to crash in sanitizer_common internals.
Patch By: mcgrathr
Differential Revision: https://reviews.llvm.org/D46344
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@331382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator_local_cache.h')
0 files changed, 0 insertions, 0 deletions