[ASAN] Adjust asan tests due to new optimizations

llvm-svn: 372141
This commit is contained in:
David Bolvansky 2019-09-17 17:07:31 +00:00
parent 1461fb6e78
commit 5abd6f46ae
1 changed files with 1 additions and 1 deletions

View 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);