[compiler-rt] [SanitizerCommon] add null check for fopen64 interceptor (PR #68760)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 21:00:41 PDT 2023


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 b05dbc4d5f28e4fe6ac4486925e09d64861720cc bbd0845b125678bd3dcbf99425b771bb3c6b7f2b -- compiler-rt/test/sanitizer_common/TestCases/fopen64_nullptr.c
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/test/sanitizer_common/TestCases/fopen64_nullptr.c b/compiler-rt/test/sanitizer_common/TestCases/fopen64_nullptr.c
index 597fe7c8f2e9..7df236c985b7 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/fopen64_nullptr.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/fopen64_nullptr.c
@@ -3,7 +3,7 @@
 
 // REQUIRES: linux
 #include <stdio.h>
-FILE * fopen64 ( const char * filename, const char * mode );
+FILE *fopen64(const char *filename, const char *mode);
 const char *fn = NULL;
 FILE *f;
 int main() { f = fopen64(fn, "r"); }

``````````

</details>


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


More information about the llvm-commits mailing list