summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-09-17 17:07:31 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-09-17 17:07:31 +0000
commit5abd6f46ae8ae1a8b0f52b60fb52e1ba444b3d9b (patch)
tree2f2094956e2c938206c4e6225c549e58fd4e6e35
parent1461fb6e783cb946b061f66689b419f74f7fad63 (diff)
downloadbcm5719-llvm-5abd6f46ae8ae1a8b0f52b60fb52e1ba444b3d9b.tar.gz
bcm5719-llvm-5abd6f46ae8ae1a8b0f52b60fb52e1ba444b3d9b.zip
[ASAN] Adjust asan tests due to new optimizations
llvm-svn: 372141
-rw-r--r--compiler-rt/lib/asan/tests/asan_str_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_str_test.cpp b/compiler-rt/lib/asan/tests/asan_str_test.cpp
index cc5bd2b4446..50e1ab441cf 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);
OpenPOWER on IntegriCloud