[compiler-rt] Ignore out-of-bounds printf() format string in ASan test (PR #66695)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 13:49:20 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
<details>
<summary>Changes</summary>
This warning needs to be disabled. The format string is deliberately too
large.
---
Full diff: https://github.com/llvm/llvm-project/pull/66695.diff
1 Files Affected:
- (modified) compiler-rt/test/asan/TestCases/printf-5.c (+1-1)
``````````diff
diff --git a/compiler-rt/test/asan/TestCases/printf-5.c b/compiler-rt/test/asan/TestCases/printf-5.c
index eef5223e4e8da0f..19ff182acce6702 100644
--- a/compiler-rt/test/asan/TestCases/printf-5.c
+++ b/compiler-rt/test/asan/TestCases/printf-5.c
@@ -1,4 +1,4 @@
-// RUN: %clang_asan -O2 %s -o %t
+// RUN: %clang_asan -Wno-excess-initializers -O2 %s -o %t
// We need replace_intrin=0 to avoid reporting errors in memcpy.
// RUN: %env_asan_opts=replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
// RUN: %env_asan_opts=replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
``````````
</details>
https://github.com/llvm/llvm-project/pull/66695
More information about the llvm-commits
mailing list