[compiler-rt] Reland: [ASan][Windows] Fix memmove/memcpy interception on x64 (#192060) (PR #193633)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 06:14:16 PDT 2026
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,inc -- compiler-rt/test/asan/TestCases/Windows/realloc_zero_size.cpp compiler-rt/lib/asan/asan_allocator.cpp compiler-rt/lib/asan/asan_win_static_runtime_thunk.cpp compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc --diff_from_common_commit
``````````
: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/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp
index 9552e4400..64542f79a 100644
--- a/compiler-rt/lib/asan/asan_allocator.cpp
+++ b/compiler-rt/lib/asan/asan_allocator.cpp
@@ -357,8 +357,8 @@ void AllocatorOptions::CopyTo(Flags *f, CommonFlags *cf) {
// destination. `m` describes the source chunk so we can honor any
// platform-specific constraints attached to it (e.g. zero-size allocations
// upgraded to 1 byte on Windows).
-static void ReallocCopyContents(void *new_ptr, void *old_ptr, uptr size,
- AsanChunk *m) {
+static void ReallocCopyContents(void* new_ptr, void* old_ptr, uptr size,
+ AsanChunk* m) {
#if SANITIZER_WINDOWS64
if (!size)
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/193633
More information about the llvm-commits
mailing list