[compiler-rt] 6b7c402 - Ignore out-of-bounds printf() format string in ASan test (#66695)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 14:47:04 PDT 2023


Author: Mitch Phillips
Date: 2023-09-18T14:47:00-07:00
New Revision: 6b7c4027745b7e460932ce5864d6e199b2f4639e

URL: https://github.com/llvm/llvm-project/commit/6b7c4027745b7e460932ce5864d6e199b2f4639e
DIFF: https://github.com/llvm/llvm-project/commit/6b7c4027745b7e460932ce5864d6e199b2f4639e.diff

LOG: Ignore out-of-bounds printf() format string in ASan test (#66695)

This warning needs to be disabled. The format string is deliberately too
large.

Added: 
    

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

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list