forked from OSchip/llvm-project
[ASAN] Adjust asan tests due to new optimizations
llvm-svn: 372141
This commit is contained in:
parent
1461fb6e78
commit
5abd6f46ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue