diff options
author | David Bolvansky <david.bolvansky@gmail.com> | 2019-09-17 17:07:31 +0000 |
---|---|---|
committer | David Bolvansky <david.bolvansky@gmail.com> | 2019-09-17 17:07:31 +0000 |
commit | 0254289ab2423cec855044848ccca817ae0f45de (patch) | |
tree | edb02b7f9a524c2103bd5184f01b3aef1707e10b | |
parent | c47e688f48a50aaf27ac05e073630057517d4674 (diff) | |
download | compiler-rt-0254289ab2423cec855044848ccca817ae0f45de.tar.gz |
[ASAN] Adjust asan tests due to new optimizations
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@372141 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/tests/asan_str_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/tests/asan_str_test.cpp b/lib/asan/tests/asan_str_test.cpp index cc5bd2b44..50e1ab441 100644 --- a/lib/asan/tests/asan_str_test.cpp +++ b/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); |