[compiler-rt] [HWASan] add test for hwasan_handle_longjmp ignore logic (PR #83359)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 16:27:41 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 191fd2d9db46ba41308f0b2b342b2dc268d7be6f c25f9b3bd50047416903df92a867796780c8ce7e -- compiler-rt/test/hwasan/TestCases/longjmp-out-of-range.c
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/test/hwasan/TestCases/longjmp-out-of-range.c b/compiler-rt/test/hwasan/TestCases/longjmp-out-of-range.c
index 69b10dec04..2d7ed2ab5e 100644
--- a/compiler-rt/test/hwasan/TestCases/longjmp-out-of-range.c
+++ b/compiler-rt/test/hwasan/TestCases/longjmp-out-of-range.c
@@ -1,12 +1,11 @@
 // RUN: %clang_hwasan -O0 %s -o %t && %run %t 2>&1 | FileCheck %s
 
 // REQUIRES: pointer-tagging
-#include <stdlib.h>
 #include <assert.h>
 #include <sanitizer/hwasan_interface.h>
+#include <stdlib.h>
 
-__attribute__((noinline))
-int f(void *caller_frame) {
+__attribute__((noinline)) int f(void *caller_frame) {
   int z = 0;
   int *volatile p = &z;
   // Tag of local is never zero.

``````````

</details>


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


More information about the llvm-commits mailing list