[compiler-rt] [compiler-rt][rtsan] getsockname interception. (PR #123409)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 13:56:34 PST 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 ce6e66ddecbd1ddfa3be9be2ac881931d5ae71a4 822022290155c6c78dda59499974df3996ba6c7a --extensions cpp -- compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
index 38ea3eeb51..7ab54c24a0 100644
--- a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
@@ -830,7 +830,8 @@ INTERCEPTOR(int, getnameinfo, const struct sockaddr *sa, socklen_t salen,
}
#if SANITIZER_INTERCEPT_GETSOCKNAME
-INTERCEPTOR(int, getsockname, int socket, struct sockaddr *sa, socklen_t *salen) {
+INTERCEPTOR(int, getsockname, int socket, struct sockaddr *sa,
+ socklen_t *salen) {
__rtsan_notify_intercepted_call("getsockname");
return REAL(getsockname)(socket, sa, salen);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/123409
More information about the llvm-commits
mailing list