HomeSort by relevance Sort by last modified time
    Searched full:strncat (Results 1 - 25 of 647) 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 1 // RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -Wno-strncat-size -Wno-strlcpy-strlcat-size -Wno-sizeof-array-argument -Wno-sizeof-pointer-memaccess -verify %s
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}}
cstring-syntax-cxx.cpp 18 // Ensure we don't crash on custom-defined strncat.
19 char strncat ();
21 return strncat ();
  /external/llvm/test/Transforms/InstCombine/
strncat-1.ll 1 ; Test that the strncat libcall simplifier works correctly.
11 declare i8* @strncat(i8*, i8*, i32)
16 ; CHECK-NOT: call i8* @strncat
23 ; rslt1 = strncat(target, "hello\00")
25 %rslt1 = call i8* @strncat(i8* %arg1, i8* %arg2, i32 6)
27 ; rslt2 = strncat(rslt1, "\00")
29 %rslt2 = call i8* @strncat(i8* %rslt1, i8* %arg3, i32 42)
31 ; rslt3 = strncat(rslt2, "\00hello\00")
33 %rslt3 = call i8* @strncat(i8* %rslt2, i8* %arg4, i32 42)
strncat-2.ll 1 ; Test that the strncat libcall simplifier works correctly.
11 declare i8* @strncat(i8*, i8*, i32)
15 ; CHECK-NOT: call i8* @strncat
20 call i8* @strncat(i8* %dst, i8* %src, i32 13)
30 call i8* @strncat(i8* %dst, i8* %src, i32 13)
40 call i8* @strncat(i8* %dst, i8* %src, i32 0)
46 ; CHECK: call i8* @strncat
51 call i8* @strncat(i8* %dst, i8* %src, i32 1)
strncat-3.ll 1 ; Test that the strncat libcall simplifier works correctly.
11 declare i16* @strncat(i8*, i8*, i32)
15 ; CHECK: call i16* @strncat
20 call i16* @strncat(i8* %dst, i8* %src, i32 13)
  /external/google-breakpad/src/third_party/libdisasm/
x86_format.c 18 #define STRNCAT( buf, str, len ) do { \
21 strncat( buf, str, _len ); \
35 STRNCAT( buf, _tmp, len ); \
63 if ( prefix & 1 ) { STRNCAT( buf, prefix_strings[1], len ); }
64 if ( prefix & 2 ) { STRNCAT( buf, prefix_strings[2], len ); }
65 if ( prefix & 4 ) { STRNCAT( buf, prefix_strings[3], len ); }
66 if ( prefix & 8 ) { STRNCAT( buf, prefix_strings[4], len ); }
154 STRNCAT( str, " ", len );
157 STRNCAT(str, operand_regtypes[i].name, len );
168 STRNCAT( buf, "(", len )
    [all...]
  /external/valgrind/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 (vg_replace_strmem.c:...)
25 Source and destination overlap in strncat(0x........, 0x........, 21)
26 at 0x........: strncat (vg_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
98 // strncat(dst, src, sizeof(dst) - strlen(dest) - 1);
100 // - strncat(dst, src, sizeof(dst) - strlen(dst));
101 // - strncat(dst, src, sizeof(dst) - 1);
102 // - strncat(dst, src, sizeof(dst));
140 if (CheckerContext::isCLibraryFunction(FD, "strncat")) {
  /external/compiler-rt/test/asan/TestCases/
strncat_strict.c 1 // Test strict_string_checks option in strncat function
16 char* r = strncat(to + to_size, from, 2);
22 char* r = strncat(to, from, 1);
  /hardware/ti/omap4-aah/camera/OMXCameraAdapter/
OMXCapabilities.cpp 371 strncat(buffer, PARAM_SEP, ((((int)MAX_PROP_VALUE_LENGTH - 1 - (int)strlen(buffer)) < 0) ? 0 : (MAX_PROP_VALUE_LENGTH - 1 - strlen(buffer))));
373 strncat(buffer, cap[i].param, ((((int)MAX_PROP_VALUE_LENGTH - 1 - (int)strlen(buffer)) < 0) ? 0 : (MAX_PROP_VALUE_LENGTH - 1 - strlen(buffer))));
404 strncat(buffer, PARAM_SEP, bufferSize - 1);
406 strncat(buffer, cap[i].param, bufferSize - 1);
492 strncat(buffer, PARAM_SEP, bufferSize - 1);
494 strncat(buffer, cap[i].param, bufferSize - 1);
522 strncat(buffer, PARAM_SEP, bufferSize - 1);
524 strncat(buffer, cap[i].param, bufferSize - 1);
554 strncat(buffer, PARAM_SEP, bufferSize - 1);
556 strncat(buffer, cap[i].param, bufferSize -1)
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
pcrt32.h 25 #define _fstrncat strncat
  /external/compiler-rt/lib/asan/tests/
asan_str_test.cc 389 // strncat() reads strlen(to) bytes from |to| before concatenating.
395 // Normal strncat calls.
396 strncat(to, from, 0);
397 strncat(to, from, from_size);
399 strncat(to, from, 2 * from_size);
401 EXPECT_DEATH(strncat(to - 1, from, 0), LeftOOBAccessMessage(1));
402 strncat(to, from + from_size - 1, 10);
404 EXPECT_DEATH(strncat(to - 1, from, 2), LeftOOBAccessMessage(1));
405 EXPECT_DEATH(strncat(to, from - 1, 2), LeftOOBReadMessage(1));
406 EXPECT_DEATH(strncat(to, from + from_size, 2), RightOOBReadMessage(0))
    [all...]
  /dalvik/libdex/
OptInvocation.cpp 90 strncat(absoluteFile, "/", kBufLen - strlen(absoluteFile));
92 strncat(absoluteFile, fileName, kBufLen - strlen(absoluteFile));
100 strncat(absoluteFile, "/", kBufLen - strlen(absoluteFile));
101 strncat(absoluteFile, subFileName, kBufLen - strlen(absoluteFile));
139 strncat(nameBuf, absoluteFile, kBufLen - strlen(nameBuf));
  /external/libmicrohttpd/doc/examples/
tlsauthentication.c 49 strncat (tmp, &lookup[(l >> 18) & 0x3F], 1);
50 strncat (tmp, &lookup[(l >> 12) & 0x3F], 1);
53 strncat (tmp, &lookup[(l >> 6) & 0x3F], 1);
55 strncat (tmp, &lookup[l & 0x3F], 1);
59 strncat (tmp, "===", 3 - length % 3);
  /external/clang/test/CodeGen/
libcalls-fno-builtin.c 12 char *strncat(char *s1, const char *s2, size_t n);
55 char *t7(char *x) { return strncat(x, "", 1); }
57 // CHECK: strncat
  /external/llvm/test/Transforms/DeadStoreElimination/
libcalls.ll 36 declare i8* @strncat(i8* %dest, i8* %src, i32 %n) nounwind
41 ; CHECK-NOT: @strncat
42 %call = call i8* @strncat(i8* %dest, i8* %src, i32 12)
  /bionic/libc/arch-x86_64/
x86_64.mk 15 upstream-openbsd/lib/libc/string/strncat.c \
46 arch-x86_64/string/sse2-strncat-slm.S \
  /bionic/libc/bionic/
__strncat_chk.cpp 41 * This strncat check is called if _FORTIFY_SOURCE is defined and
59 __fortify_chk_fail("strncat: prevented write past end of buffer",
  /bionic/libc/upstream-openbsd/lib/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 67 strncat(buffer, *name, len);
79 strncat(buffer, twentyfive_spaces, 25-spacing);
  /external/v8/src/
startup-data-util.cc 93 strncat(*buffer, exec_path, path_separator + 1);
94 strncat(*buffer, name, name_length);
  /bionic/libc/arch-x86/atom/string/
ssse3-strncat-atom.S 31 #define STRCAT strncat

Completed in 788 milliseconds

1 2 3 4 5 6 7 8 91011>>