From 5abd6f46ae8ae1a8b0f52b60fb52e1ba444b3d9b Mon Sep 17 00:00:00 2001 From: David Bolvansky Date: Tue, 17 Sep 2019 17:07:31 +0000 Subject: [PATCH] [ASAN] Adjust asan tests due to new optimizations llvm-svn: 372141 --- compiler-rt/lib/asan/tests/asan_str_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/tests/asan_str_test.cpp b/compiler-rt/lib/asan/tests/asan_str_test.cpp index cc5bd2b..50e1ab4 100644 --- a/compiler-rt/lib/asan/tests/asan_str_test.cpp +++ b/compiler-rt/lib/asan/tests/asan_str_test.cpp @@ -454,7 +454,7 @@ TEST(AddressSanitizer, StrNCatOOBTest) { size_t from_size = Ident(20); char *from = MallocAndMemsetString(from_size); // Normal strncat calls. - strncat(to, from, 0); + strncat(to, from, 1); strncat(to, from, from_size); from[from_size - 1] = '\0'; strncat(to, from, 2 * from_size); -- 2.7.4