commit | 5d82422f53ced6cd62794792d0eb19d34d06ac92 | [log] [tgz] |
---|---|---|
author | jakehehrlich <jakehehrlich> | Wed Oct 09 21:01:50 2019 |
committer | jakehehrlich <jakehehrlich> | Wed Oct 09 21:01:50 2019 |
tree | ebabe24b57750b6bdfafb64ca68460856757acdf | |
parent | e7d55e7d77675f359029035fb4120a0e4e319223 [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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer@374228 91177308-0d34-0410-b5e6-96231b3b80d8