[compiler-rt] [hwasan] Use ErrorAction::Recover in interceptors (PR #74000)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 14:46:37 PST 2023
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 4f3081296f37a244010dfd493a07e95c06ef22ff 672b71cc1003533460a82f06b7d24fbdc02ffd58 -- compiler-rt/test/hwasan/TestCases/memset-recover.cpp compiler-rt/lib/hwasan/hwasan_interceptors.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/hwasan/TestCases/memset-recover.cpp b/compiler-rt/test/hwasan/TestCases/memset-recover.cpp
index e29e7c4120..093a017934 100644
--- a/compiler-rt/test/hwasan/TestCases/memset-recover.cpp
+++ b/compiler-rt/test/hwasan/TestCases/memset-recover.cpp
@@ -3,10 +3,10 @@
// RUN: %env_hwasan_opts=halt_on_error=1 not %run %t 2>&1 | FileCheck %s --implicit-check-not=RETURN_FROM_TEST
#include <sanitizer/hwasan_interface.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <stdio.h>
__attribute__((no_sanitize("hwaddress"))) void
ForceCallInterceptor(void *p, int c, size_t size) {
@@ -23,7 +23,7 @@ int main(int argc, char **argv) {
}
ForceCallInterceptor(p2, 0, size);
free(p);
- fprintf(stderr, "RETURN_FROM_TEST\n");
+ fprintf(stderr, "RETURN_FROM_TEST\n");
return 0;
// CHECK: HWAddressSanitizer: tag-mismatch on address
// CHECK: WRITE of size 4
``````````
</details>
https://github.com/llvm/llvm-project/pull/74000
More information about the llvm-commits
mailing list