Skip to content

Commit 6b7c402

Browse files
authored
Ignore out-of-bounds printf() format string in ASan test (llvm#66695)
This warning needs to be disabled. The format string is deliberately too large.
1 parent 929662b commit 6b7c402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/asan/TestCases/printf-5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_asan -O2 %s -o %t
1+
// RUN: %clang_asan -Wno-excess-initializers -O2 %s -o %t
22
// We need replace_intrin=0 to avoid reporting errors in memcpy.
33
// RUN: %env_asan_opts=replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
44
// RUN: %env_asan_opts=replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s

0 commit comments

Comments
 (0)