commit | 8f3f4e079f49df71cf55216841c19905cb1bc28a | [log] [tgz] |
---|---|---|
author | Jake Ehrlich <jakehehrlich@google.com> | Wed Oct 09 21:01:50 2019 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Mar 25 23:20:27 2021 -0700 |
tree | 15ad35192cd3163d36219bc4efbcff734cd9033a | |
parent | 70fdaa3c63202618cae3586cf034ff56576701fe [diff] |
[libFuzzer] Fix Alarm callback in fuchsia. This patch adds an #if macro to skip the InFuzzingThread() comparison for fuchsia, similar to what it is done for Windows and NetBSD. In fuchsia, the alarm callback runs in a separate thread[0], making it fail the comparison InFuzzingThread(), breaking the -timeout flag. [0]: https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp#L323 Author: charco (aka Marco Vanotti) Differential Revision: https://reviews.llvm.org/D68166 llvm-svn: 374228 GitOrigin-RevId: e7bfce78636905d58300bea42861f2f35acdda77