/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | builtin-strncat-chk-1.c | 19 strncat (p, "abcdefg", 9); 21 strncat (p, "abcdefghi", 9); 23 strncat (p, "abcdefghij", 9); 25 strncat (p, "abcdefghi", 10); 27 strncat (p, "abcdefghij", 10); /* { dg-warning "will always overflow" } */ 29 strncat (p, "abcdefgh", 11); 31 strncat (p, "abcdefghijkl", 11); /* { dg-warning "will always overflow" } */ 33 strncat (p, q, 9); 35 strncat (p, q, 10); /* { dg-warning "might overflow" } */ 37 strncat ( [all...] |
H A D | 20050503-1.c | 40 F3 (11, char *, strncat, char *, const char *, size_t, (a1, a2, a3))
|
H A D | pr59717.c | 200 strncat (p, q, sz); /* { dg-warning "incompatible implicit" } */
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/ |
H A D | strncat.c | 3 Ensure all expected transformations of builtin strncat occur and 10 extern char *strncat (char *, const char *, size_t); 28 if (strncat (dst, "", 100) != dst || memcmp (dst, "hello world\0XXX", 15)) 31 if (strncat (dst, s2, 100) != dst || memcmp (dst, "hello world\0XXX", 15)) 34 if (strncat (++d2, s2, 100) != dst+1 || d2 != dst+1 38 if (strncat (++d2+5, s2, 100) != dst+6 || d2 != dst+1 42 if (strncat (++d2+5, s1+11, 100) != dst+6 || d2 != dst+1 46 if (strncat (++d2+5, s1, 0) != dst+6 || d2 != dst+1 50 if (strncat (++d2+5, "", ++x) != dst+6 || d2 != dst+1 || x != 124 55 if (strncat (ds [all...] |
H A D | strncat-chk.c | 10 extern char *strncat (char *, const char *, size_t); 36 /* Following strncat calls should be all optimized out. */ 41 if (strncat (dst, "", 100) != dst || strcmp (dst, s1)) 44 if (strncat (dst, s2, 100) != dst || strcmp (dst, s1)) 47 if (strncat (++d2, s2, 100) != dst+1 || d2 != dst+1 || strcmp (dst, s1)) 50 if (strncat (++d2+5, s2, 100) != dst+6 || d2 != dst+1 || strcmp (dst, s1)) 53 if (strncat (++d2+5, s1+11, 100) != dst+6 || d2 != dst+1 || strcmp (dst, s1)) 56 if (strncat (++d2+5, s1, 0) != dst+6 || d2 != dst+1 || strcmp (dst, s1)) 59 if (strncat (++d2+5, ++s3, 0) != dst+6 || d2 != dst+1 || strcmp (dst, s1) 63 if (strncat ( [all...] |
H A D | chk.h | 34 #undef strncat macro 35 #define strncat(dst, src, len) \ macro 68 #define __builtin_strncat(dst, src, len) strncat (dst, src, len)
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/ |
H A D | strncat.c | 8 strncat (char *s1, const char *s2, size_t n) function
|
H A D | chk.c | 293 strncat (char *s1, const char *s2, __SIZE_TYPE__ n) function 322 /* If size is -1, GCC should always optimize the call into strncat. */ 336 return strncat (d, s, n);
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/21_strings/headers/cstring/ |
H A D | functions_std.cc | 37 using std::strncat;
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/asan/ |
H A D | asan_str_test.cc | 392 // strncat() reads strlen(to) bytes from |to| before concatenating. 398 // Normal strncat calls. 399 strncat(to, from, 0); 400 strncat(to, from, from_size); 402 strncat(to, from, 2 * from_size); 404 EXPECT_DEATH(strncat(to - 1, from, 0), LeftOOBAccessMessage(1)); 405 strncat(to, from + from_size - 1, 10); 407 EXPECT_DEATH(strncat(to - 1, from, 2), LeftOOBAccessMessage(1)); 408 EXPECT_DEATH(strncat(to, from - 1, 2), LeftOOBReadMessage(1)); 409 EXPECT_DEATH(strncat(t [all...] |
/haiku-buildtools/gcc/libstdc++-v3/include/c_compatibility/ |
H A D | string.h | 40 using std::strncat;
|
/haiku-buildtools/gcc/gcc/ada/ |
H A D | cstreams.c | 215 strncat (buffer, "/", __gnat_max_path_len); 216 strncat (buffer, nambuffer, __gnat_max_path_len); 236 strncat (buffer, nam, __gnat_max_path_len - length - 1);
|
/haiku-buildtools/gcc/libssp/ssp/ |
H A D | string.h | 48 #undef strncat macro 155 #define strncat(dest, src, len) \ macro
|
/haiku-buildtools/gcc/libssp/ |
H A D | Makefile.am | 48 strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
|
/haiku-buildtools/gcc/gcc/cp/ |
H A D | cfns.h | 190 "strncat",
|
/haiku-buildtools/gcc/libmpx/mpxwrap/ |
H A D | mpx_wrappers.c | 187 strncat (dst, src, n);
|
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/ |
H A D | Wsizeof-pointer-memaccess2.c | 12 #define strncat(dst, src, sz) __builtin___strncat_chk (dst, src, sz, bos (dst)) macro 467 strncat (x, s2, sizeof (s2)); /* { dg-warning "call is the same expression as the source; did you mean to provide an explicit length" } */ 471 strncat (w, s2, sizeof (w)); /* { dg-warning "call is the same expression as the destination; did you mean to provide an explicit length" } */ 478 strncat (x, s4, sizeof (s4));
|
/haiku-buildtools/gcc/libsanitizer/asan/ |
H A D | asan_win_dll_thunk.cc | 346 INTERCEPT_LIBRARY_FUNCTION(strncat); variable
|
H A D | asan_interceptors.cc | 449 // For both strcat() and strncat() we need to check the validity of |to| 470 INTERCEPTOR(char*, strncat, char *to, const char *from, uptr size) { 480 CHECK_RANGES_OVERLAP("strncat", to, to_length + copy_length + 1, 484 return REAL(strncat)(to, from, size); 750 ASAN_INTERCEPT_FUNC(strncat);
|
/haiku-buildtools/gcc/libstdc++-v3/config/locale/dragonfly/ |
H A D | c_locale.cc | 242 strncat (localspec, UTF8, 6);
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/torture/ |
H A D | Wsizeof-pointer-memaccess1.c | 14 extern char *strncat (char *__restrict, const char *__restrict, size_t); 54 strncat (char *dest, const char *src, size_t len) function 685 strncat (x, s2, sizeof (s2)); /* { dg-warning "call is the same expression as the source; did you mean to provide an explicit length" } */ 694 strncat (w, s2, sizeof (w)); /* { dg-warning "call is the same expression as the destination; did you mean to provide an explicit length" } */ 701 strncat (x, s4, sizeof (s4));
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/ |
H A D | Wsizeof-pointer-memaccess2.C | 16 extern char *strncat (char *__restrict, const char *__restrict, size_t); 56 strncat (char *dest, const char *src, size_t len) function 693 strncat (x, s2, sizeof (s2)); // { dg-warning "call is the same expression as the source; did you mean to provide an explicit length" } 702 strncat (w, s2, sizeof (w)); // { dg-warning "call is the same expression as the destination; did you mean to provide an explicit length" } 709 strncat (x, s4, sizeof (s4));
|
H A D | Wsizeof-pointer-memaccess1.C | 16 extern char *strncat (char *__restrict, const char *__restrict, size_t); 56 strncat (char *dest, const char *src, size_t len) function 689 strncat (x, s2, sizeof (s2)); // { dg-warning "call is the same expression as the source; did you mean to provide an explicit length" } 698 strncat (w, s2, sizeof (w)); // { dg-warning "call is the same expression as the destination; did you mean to provide an explicit length" } 705 strncat (x, s4, sizeof (s4));
|
/haiku-buildtools/legacy/binutils/gas/config/ |
H A D | tc-bfin.c | 910 strncat (label_name, c1, c-c1); 917 strncat (label_name, c1, c-c1);
|
/haiku-buildtools/binutils/binutils/ |
H A D | readelf.c | 2666 strncat (buf, ", avr:1", size); 2669 strncat (buf, ", avr:2", size); 2672 strncat (buf, ", avr:25", size); 2675 strncat (buf, ", avr:3", size); 2678 strncat (buf, ", avr:31", size); 2681 strncat (buf, ", avr:35", size); 2684 strncat (buf, ", avr:4", size); 2687 strncat (buf, ", avr:5", size); 2690 strncat (buf, ", avr:51", size); 2693 strncat (bu [all...] |