[PATCH] D28723: [libFuzzer] AlrmHandler is executed in a different thread for Windows.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 21 18:10:02 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL292746: [libFuzzer] AlrmHandler is executed in a different thread for Windows. (authored by mpividori).
Changed prior to commit:
https://reviews.llvm.org/D28723?vs=84426&id=85265#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28723
Files:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
Index: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
@@ -296,7 +296,10 @@
NO_SANITIZE_MEMORY
void Fuzzer::AlarmCallback() {
assert(Options.UnitTimeoutSec > 0);
+ // In Windows Alarm callback is executed by a different thread.
+#if !LIBFUZZER_WINDOWS
if (!InFuzzingThread()) return;
+#endif
if (!RunningCB)
return; // We have not started running units yet.
size_t Seconds =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28723.85265.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170122/3a39429d/attachment.bin>
More information about the llvm-commits
mailing list