HomeSort by relevance Sort by last modified time
    Searched full:strncat (Results 1 - 25 of 487) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/Sema/
warn-strncat-size.c 15 #define strncat BUILTIN(strncat) macro
16 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
30 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest) - 1); // no-warning
31 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // no-warning - the code might assume that dest is empty
33 strncat(dest, src, sizeof(src)); // expected-warning {{size argument in 'strncat' call appears to be size of the source}} expected-note {{change the argument to be the free space in the destination buffer minus the terminating null byte}}
35 strncat(dest, src, sizeof(src) - 1); // expected-warning {{size argument in 'strncat' call appears to be size of the source}} expected-note {{change the argument to be the free space in the destination buffer minus the terminating null byte}}
37 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning{{the value of the size arg (…)
    [all...]
  /external/clang/test/Analysis/
cstring-syntax.c 4 char *strncat(char *, const char *, size_t);
9 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential buffer overflow. Replace with 'sizeof(dest) - strlen(dest) - 1' or use a safer 'strlcat' API}}
10 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer overflow. Replace with}}
11 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning {{Potential buffer overflow. Replace with}}
12 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}}
string.c 582 // strncat()
590 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1) macro
594 #define strncat BUILTIN(strncat) macro
595 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
601 strncat(NULL, x, 4); // expected-warning{{Null pointer argument in call to string copy function}}
605 strncat(x, NULL, 4); // expected-warning{{Null pointer argument in call to string copy function}}
609 strncat(x, (char*)&strncat_fn, 4); // expected-warning{{Argument to string copy function is the address of the function 'strncat_fn', which is not a null-terminated string}}
620 if (strncat(x, y, strlen(y)) != x)
630 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destina (…)
    [all...]
  /external/llvm/test/Transforms/SimplifyLibCalls/
StrNCat.ll 3 ; RUN: not grep {call.*strncat}
15 declare i8* @strncat(i8*, i8*, i32)
24 %rslt1 = call i8* @strncat( i8* %arg1, i8* %arg2, i32 6 ) ; <i8*> [#uses=1]
26 %rslt2 = call i8* @strncat( i8* %rslt1, i8* %arg3, i32 42 ) ; <i8*> [#uses=1]
28 %rslt3 = call i8* @strncat( i8* %rslt2, i8* %arg4, i32 42 ) ; <i8*> [#uses=1]
  /external/valgrind/main/memcheck/tests/
overlap.c 87 /* testing strncat() */
97 strncat(b, a, 25);
101 strncat(b, a, 26);
105 strncat(b, a, 27);
112 strncat(a+20, a, 21); // run twice to check 2nd error isn't shown
113 strncat(a, a+20, 21);
overlap.stderr.exp 21 Source and destination overlap in strncat(0x........, 0x........, 21)
22 at 0x........: strncat (mc_replace_strmem.c:...)
25 Source and destination overlap in strncat(0x........, 0x........, 21)
26 at 0x........: strncat (mc_replace_strmem.c:...)
  /hardware/ti/omap4xxx/camera/OMXCameraAdapter/
OMXCapabilities.cpp 242 strncat(buffer, cap[i].param, bufferSize - 1);
243 strncat(buffer, PARAM_SEP, bufferSize - 1);
272 strncat(buffer, cap[i].param, bufferSize - 1);
273 strncat(buffer, PARAM_SEP, bufferSize - 1);
287 strncat(buffer, tmpBuffer, bufferSize - 1);
288 strncat(buffer, PARAM_SEP, bufferSize - 1);
294 strncat(buffer, tmpBuffer, bufferSize - 1);
295 strncat(buffer, PARAM_SEP, bufferSize - 1);
338 strncat(buffer, PARAM_SEP, bufferSize - 1);
340 strncat(buffer, cap[i].param, bufferSize - 1)
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
CStringSyntaxChecker.cpp 11 // - Identifies erroneous patterns in the last argument to strncat - the number
80 /// Identify erroneous patterns in the last argument to strncat - the number
99 // strncat(dst, src, sizeof(dst) - strlen(dest) - 1);
101 // - strncat(dst, src, sizeof(dst) - strlen(dst));
102 // - strncat(dst, src, sizeof(dst) - 1);
103 // - strncat(dst, src, sizeof(dst));
139 if (CheckerContext::isCLibraryFunction(FD, "strncat", ASTC)) {
  /dalvik/libdex/
OptInvocation.cpp 69 strncat(absoluteFile, "/", kBufLen);
71 strncat(absoluteFile, fileName, kBufLen);
79 strncat(absoluteFile, "/", kBufLen);
80 strncat(absoluteFile, subFileName, kBufLen);
103 strncat(nameBuf, absoluteFile, kBufLen);
  /bionic/libc/string/
strncat.c 1 /* $OpenBSD: strncat.c,v 1.5 2005/08/08 08:05:37 espie Exp $ */
41 strncat(char *dst, const char *src, size_t n) function
  /external/e2fsprogs/lib/ss/
list_rqs.c 62 strncat(buffer, *name, len);
74 strncat(buffer, twentyfive_spaces, 25-spacing);
  /external/stlport/stlport/using/
cstring 53 using _STLP_VENDOR_CSTD::strncat;
  /ndk/sources/cxx-stl/stlport/stlport/using/
cstring 53 using _STLP_VENDOR_CSTD::strncat;
  /prebuilts/ndk/android-ndk-r5/sources/cxx-stl/stlport/stlport/using/
cstring 53 using _STLP_VENDOR_CSTD::strncat;
  /prebuilts/ndk/android-ndk-r6/sources/cxx-stl/stlport/stlport/using/
cstring 53 using _STLP_VENDOR_CSTD::strncat;
  /prebuilts/ndk/android-ndk-r7/sources/cxx-stl/stlport/stlport/using/
cstring 53 using _STLP_VENDOR_CSTD::strncat;
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/
cstring 64 #undef strncat
88 using ::strncat;
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/
string3.h 35 # undef strncat macro
150 __NTH (strncat (char *__restrict __dest, __const char *__restrict __src, function
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/
cstring 63 #undef strncat
89 using ::strncat;
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/
string3.h 35 # undef strncat macro
150 __NTH (strncat (char *__restrict __dest, __const char *__restrict __src, function
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/
string3.h 35 # undef strncat macro
150 __NTH (strncat (char *__restrict __dest, __const char *__restrict __src, function
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/
cstring 63 #undef strncat
89 using ::strncat;
  /prebuilts/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/
cstring 64 #undef strncat
88 using ::strncat;
  /prebuilts/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/
cstring 64 #undef strncat
88 using ::strncat;
  /prebuilts/ndk/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/
cstring 64 #undef strncat
88 using ::strncat;

Completed in 434 milliseconds

1 2 3 4 5 6 7 8 91011>>