Searched refs:to_size (Results 1 – 3 of 3) sorted by relevance
/external/compiler-rt/test/asan/TestCases/ |
D | strncat_strict.c | 14 void test1(char *to, int to_size, char *from) { in test1() argument 16 char* r = strncat(to + to_size, from, 2); in test1() 19 void test2(char *to, int to_size, char *from) { in test2() argument 21 memset(to, 'z', to_size); in test2() 26 size_t to_size = 100; in main() local 27 char *to = (char*)malloc(to_size); in main() 33 if (!strcmp(argv[1], "test1")) test1(to, to_size, from); in main() 37 if (!strcmp(argv[1], "test2")) test2(to, to_size, from); in main()
|
D | strcat_strict.c | 14 void test1(char *to, int to_size, char *from) { in test1() argument 16 char* r = strcat(to + to_size, from); in test1() 19 void test2(char *to, int to_size, char *from) { in test2() argument 21 memset(to, 'z', to_size); in test2() 26 size_t to_size = 100; in main() local 27 char *to = (char*)malloc(to_size); in main() 33 if (!strcmp(argv[1], "test1")) test1(to, to_size, from); in main() 37 if (!strcmp(argv[1], "test2")) test2(to, to_size, from); in main()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 120 size_t to_size = Ident(30); in TEST() local 122 char *to = Ident((char*)malloc(to_size)); in TEST() 127 strcpy(to + to_size - from_size, from); in TEST() 134 EXPECT_DEATH(Ident(strcpy(to + to_size, from)), RightOOBWriteMessage(0)); in TEST() 143 size_t to_size = Ident(20); in TEST() local 145 char *to = Ident((char*)malloc(to_size)); in TEST() 154 strncpy(to, from, to_size); in TEST() 155 strncpy(to, from + from_size - 1, to_size); in TEST() 156 strncpy(to + to_size - 1, from, 1); in TEST() 164 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST() [all …]
|