[compiler-rt] [msan] Mark allocator padding as uninitialized, with new origin tag (PR #157187)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 12:53:36 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 origin/main HEAD --extensions cpp,h -- compiler-rt/test/msan/allocator_padding.cpp compiler-rt/lib/msan/msan.h compiler-rt/lib/msan/msan_allocator.cpp compiler-rt/lib/msan/msan_report.cpp compiler-rt/test/msan/zero_alloc.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/msan/msan_report.cpp b/compiler-rt/lib/msan/msan_report.cpp
index 8fc18aace..cd0bf6723 100644
--- a/compiler-rt/lib/msan/msan_report.cpp
+++ b/compiler-rt/lib/msan/msan_report.cpp
@@ -91,9 +91,8 @@ static void DescribeOrigin(u32 id) {
d.Default());
break;
case STACK_TRACE_TAG_ALLOC_PADDING:
- Printf(
- " %sUninitialized value is outside of heap allocation%s\n",
- d.Origin(), d.Default());
+ Printf(" %sUninitialized value is outside of heap allocation%s\n",
+ d.Origin(), d.Default());
break;
default:
Printf(" %sUninitialized value was created%s\n", d.Origin(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/157187
More information about the llvm-commits
mailing list