[compiler-rt] [compiler-rt] prctl interception update. (PR #77207)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 6 11:02:04 PST 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 a085402ef54379758e6c996dbaedfcb92ad222b5 90d38f558548c23a3eac10107f5978d45f2e2b88 -- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index d1aa179ab7..7d3dbf967c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -1265,7 +1265,8 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3,
   } else if (res != -1 && option == PR_GET_NAME) {
     char *name = (char *)arg2;
     COMMON_INTERCEPTOR_WRITE_RANGE(ctx, name, internal_strnlen(name, 15) + 1);
-  } else if (res != -1 && option == PR_SCHED_CORE && arg2 == PR_SCHED_CORE_GET) {
+  } else if (res != -1 && option == PR_SCHED_CORE &&
+             arg2 == PR_SCHED_CORE_GET) {
     COMMON_INTERCEPTOR_WRITE_RANGE(ctx, (u64*)(arg5), sizeof(u64));
   }
   return res;

``````````

</details>


https://github.com/llvm/llvm-project/pull/77207


More information about the llvm-commits mailing list