/external/compiler-rt/test/asan/TestCases/ |
strcat_strict.c | 14 void test1(char *to, int to_size, char *from) { 16 char* r = strcat(to + to_size, from); 19 void test2(char *to, int to_size, char *from) { 21 memset(to, 'z', to_size); 26 size_t to_size = 100; local 27 char *to = (char*)malloc(to_size); 33 if (!strcmp(argv[1], "test1")) test1(to, to_size, from); 37 if (!strcmp(argv[1], "test2")) test2(to, to_size, from);
|
strncat_strict.c | 14 void test1(char *to, int to_size, char *from) { 16 char* r = strncat(to + to_size, from, 2); 19 void test2(char *to, int to_size, char *from) { 21 memset(to, 'z', to_size); 26 size_t to_size = 100; local 27 char *to = (char*)malloc(to_size); 33 if (!strcmp(argv[1], "test1")) test1(to, to_size, from); 37 if (!strcmp(argv[1], "test2")) test2(to, to_size, from);
|
/external/compiler-rt/lib/asan/tests/ |
asan_str_test.cc | 120 size_t to_size = Ident(30); local 121 size_t from_size = Ident(6); // less than to_size 122 char *to = Ident((char*)malloc(to_size)); 127 strcpy(to + to_size - from_size, from); 134 EXPECT_DEATH(Ident(strcpy(to + to_size, from)), RightOOBWriteMessage(0)); 143 size_t to_size = Ident(20); local 144 size_t from_size = Ident(6); // less than to_size 145 char *to = Ident((char*)malloc(to_size)); 154 strncpy(to, from, to_size); 155 strncpy(to, from + from_size - 1, to_size); 355 size_t to_size = Ident(100); local 390 size_t to_size = Ident(100); local [all...] |
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/ |
c_locale_win32.c | 1719 int from_size, to_size, wbuf_size; local [all...] |