[compiler-rt] [sanitizer_common] Implement address sanitizer on AIX: process memory mapping (PR #138537)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 5 07:41:01 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- compiler-rt/lib/sanitizer_common/sanitizer_aix.h compiler-rt/lib/sanitizer_common/sanitizer_procmaps_aix.cpp compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
index c04e275f5..9cc10e9ed 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
@@ -19,12 +19,12 @@
SANITIZER_APPLE || SANITIZER_SOLARIS || SANITIZER_HAIKU || \
SANITIZER_FUCHSIA || SANITIZER_AIX
-#include "sanitizer_common.h"
-#include "sanitizer_internal_defs.h"
-#include "sanitizer_fuchsia.h"
-#include "sanitizer_linux.h"
-#include "sanitizer_mac.h"
-#include "sanitizer_mutex.h"
+# include "sanitizer_common.h"
+# include "sanitizer_internal_defs.h"
+# include "sanitizer_fuchsia.h"
+# include "sanitizer_linux.h"
+# include "sanitizer_mac.h"
+# include "sanitizer_mutex.h"
namespace __sanitizer {
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_aix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_aix.cpp
index d156a9ebe..c291f6a60 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_aix.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_aix.cpp
@@ -104,8 +104,9 @@ bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) {
uptr len;
constexpr unsigned BUFFER_SIZE = 128;
char objPath[BUFFER_SIZE] = {};
- // Use path /proc/<pid>/object/<object_id>
- // TODO: Pass a separate path from mapIter->pr_pathoff to display to the user.
+ // Use path /proc/<pid>/object/<object_id>
+ // TODO: Pass a separate path from mapIter->pr_pathoff to display to the
+ // user.
// TODO: Append the archive member name if it exists.
internal_snprintf(objPath, BUFFER_SIZE, "/proc/%d/object/%s",
internal_getpid(), mapIter->pr_mapname);
``````````
</details>
https://github.com/llvm/llvm-project/pull/138537
More information about the llvm-commits
mailing list