[compiler-rt] r372141 - [ASAN] Adjust asan tests due to new optimizations
David Bolvansky via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 10:07:31 PDT 2019
Author: xbolva00
Date: Tue Sep 17 10:07:31 2019
New Revision: 372141
URL: http://llvm.org/viewvc/llvm-project?rev=372141&view=rev
Log:
[ASAN] Adjust asan tests due to new optimizations
Modified:
compiler-rt/trunk/lib/asan/tests/asan_str_test.cpp
Modified: compiler-rt/trunk/lib/asan/tests/asan_str_test.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_str_test.cpp?rev=372141&r1=372140&r2=372141&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_str_test.cpp (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_str_test.cpp Tue Sep 17 10:07:31 2019
@@ -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);
More information about the llvm-commits
mailing list