[compiler-rt] [HWASan] [compiler-rt] support non-4k pages on Android (PR #95069)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 18:41:47 PDT 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 1fe4f2d1a4b9d16ae41076608783df4427a4d985 d5ba9ad95b0ee3526cdcff4bebf4a6da558ac1d5 -- compiler-rt/lib/asan/asan_linux.cpp compiler-rt/lib/asan/asan_mac.cpp compiler-rt/lib/asan/asan_premap_shadow.cpp compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp compiler-rt/lib/memprof/memprof_linux.cpp compiler-rt/lib/sanitizer_common/sanitizer_common.h compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp b/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
index ac3360aa34..fadc5ff52a 100644
--- a/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
@@ -36,8 +36,8 @@ decltype(__hwasan_shadow)* __hwasan_premap_shadow();
namespace __hwasan {
-// We cannot call anything in libc here (see comment above), so we need to assume
-// the biggest allowed page size.
+// We cannot call anything in libc here (see comment above), so we need to
+// assume the biggest allowed page size.
static constexpr uptr kMaxGranularity = 16384;
// Conservative upper limit.
``````````
</details>
https://github.com/llvm/llvm-project/pull/95069
More information about the llvm-commits
mailing list