diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-11-20 16:39:49 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-11-20 16:39:49 +0000 |
commit | a695e418f3a04069a2906b445b3a941b51259196 (patch) | |
tree | 414bb91ef8488fc69e94fe1f1d7e47573b32e8d8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 58acafc4242377cc6a985a7b837745cbb2483fb3 (diff) | |
download | bcm5719-llvm-a695e418f3a04069a2906b445b3a941b51259196.tar.gz bcm5719-llvm-a695e418f3a04069a2906b445b3a941b51259196.zip |
[sanitizer] New attempt at using runtime checks for Android logging
Summary:
This is a second attempt after D40100 induced racey crashes with ASan
(due to `__android_log_write` and the `strncpy` interceptor on API >= 21).
This new version checks the runtime API level to be <= `ANDROID_KITKAT` for
the use of `__android_log_write`, otherwise we use `syslog`, which should
conform with the previous behavior.
Unfortunately despite numerous efforts I couldn't reproduce the original
crashes in my environments so I couldn't test that the fix was actually
preventing crashes.
Reviewers: eugenis
Reviewed By: eugenis
Subscribers: llvm-commits, srhines, kubamracek
Differential Revision: https://reviews.llvm.org/D40149
llvm-svn: 318659
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions