[compiler-rt] [libfuzzer] use timer_create() instead of setitimer() for linux (PR #110274)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 20:02:30 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 37ce3c2208167b01bad29761a4e0b0a368cb1f36 001d59b1ddf3dc3a4624d40c272fc5d87b3de9e6 --extensions cpp -- compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
index 6e6413ff5d..ef07d556f8 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
@@ -116,7 +116,7 @@ void SetTimer(int Seconds) {
   if (timer_settime(timerid, 0, &T, NULL) == -1) {
     Printf("libFuzzer: timer_settime failed with %d\n", errno);
     exit(1);
-  }  
+  }
 }
 
 void SetSignalHandler(const FuzzingOptions& Options) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/110274


More information about the llvm-commits mailing list