[compiler-rt] [HWASAN] Add memset interceptor (PR #71244)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 15:36:24 PDT 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 eb166030a1b40567b7a83658a692f0eab99dde13 49eb09532434705e896050c52a75c70b71d0c59b -- compiler-rt/test/hwasan/TestCases/memset.cpp compiler-rt/lib/hwasan/hwasan_interceptors.cpp compiler-rt/lib/hwasan/hwasan_platform_interceptors.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
index 5bd94fb36..c953d30f5 100644
--- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
@@ -156,7 +156,7 @@ struct HWAsanInterceptorContext {
 #    define COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED (!hwasan_inited)
 
 #    define COMMON_INTERCEPTOR_MEMSET_CHECK_IN_SHADOW(p) \
-  MemIsShadow(reinterpret_cast<uptr>(p))
+      MemIsShadow(reinterpret_cast<uptr>(p))
 
 // The main purpose of the mmap interceptor is to prevent the user from
 // allocating on top of shadow pages.

``````````

</details>


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


More information about the llvm-commits mailing list