[ASAN] Adjust asan tests due to new optimizations
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 17:07:31 +0000 (17:07 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 17:07:31 +0000 (17:07 +0000)
llvm-svn: 372141

compiler-rt/lib/asan/tests/asan_str_test.cpp

index cc5bd2b..50e1ab4 100644 (file)
@@ -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);