Home
last modified time | relevance | path

Searched refs:strncat (Results 1 – 25 of 125) sorted by relevance

12345

/external/clang/test/Sema/
Dwarn-strncat-size.c15 #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 in test()
31strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // no-warning - the code might a… in test()
33strncat(dest, src, sizeof(src)); // expected-warning {{size argument in 'strncat' call appears to … in test()
35strncat(dest, src, sizeof(src) - 1); // expected-warning {{size argument in 'strncat' call appears… in test()
37strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning{{the value of the … in test()
39strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in test()
41strncat((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appea… in test()
42strncat(s1+3, s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appears to be… in test()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dstrncat-1.ll1 ; 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)
Dstrncat-2.ll1 ; 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)
Dstrncat-3.ll1 ; 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/llvm/test/Transforms/InstCombine/
Dstrncat-1.ll1 ; 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)
Dstrncat-2.ll1 ; 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)
Dstrncat-3.ll1 ; 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/iperf3/src/
Diperf_util.c252 strncat(features, ", ", in get_optional_features()
255 strncat(features, "CPU affinity setting", in get_optional_features()
262 strncat(features, ", ", in get_optional_features()
265 strncat(features, "IPv6 flow label", in get_optional_features()
272 strncat(features, ", ", in get_optional_features()
275 strncat(features, "SCTP", in get_optional_features()
282 strncat(features, ", ", in get_optional_features()
285 strncat(features, "TCP congestion algorithm setting", in get_optional_features()
292 strncat(features, ", ", in get_optional_features()
295 strncat(features, "sendfile / zerocopy", in get_optional_features()
[all …]
/external/ltp/testcases/kernel/io/disktest/
Ddump.c57 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
60 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
62 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
64 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
68 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
70 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
71 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
73 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str()
77 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
100 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_raw()
[all …]
Dparse.c814 strncat(args->argstr, "(-I f) ", in make_assumptions()
819 strncat(args->argstr, "(-I b) ", in make_assumptions()
825 strncat(args->argstr, "(-I r) ", in make_assumptions()
835 strncat(args->argstr, "(-I f) ", in make_assumptions()
848 strncat(args->argstr, TmpStr, in make_assumptions()
889 strncat(args->argstr, TmpStr, in make_assumptions()
901 strncat(args->argstr, TmpStr, in make_assumptions()
909 strncat(args->argstr, "(-r) ", in make_assumptions()
915 strncat(args->argstr, "(-w) ", in make_assumptions()
920 strncat(args->argstr, "(-r) ", in make_assumptions()
[all …]
/external/clang/test/Analysis/
Dcstring-syntax.c4 char *strncat(char *, const char *, size_t);
9strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential … in testStrncat()
10strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer… in testStrncat()
11strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in testStrncat()
12 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}} in testStrncat()
Dstring.c543 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1) macro
547 #define strncat BUILTIN(strncat) macro
548 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
554 strncat(NULL, x, 4); // expected-warning{{Null pointer argument in call to string copy function}} in strncat_null_dst()
558 strncat(x, NULL, 4); // expected-warning{{Null pointer argument in call to string copy function}} in strncat_null_src()
562strncat(x, (char*)&strncat_fn, 4); // expected-warning{{Argument to string copy function is the ad… in strncat_fn()
573 clang_analyzer_eval(strncat(x, y, strlen(y)) == x); // expected-warning{{TRUE}} in strncat_effects()
580strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_0()
586strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_1()
592strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_2()
[all …]
Dcstring-syntax-cxx.cpp19 char strncat ();
21 return strncat (); in main()
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DStrNCat.ll3 ; 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/compiler-rt/lib/asan/tests/
Dasan_str_test.cc419 strncat(to, from, 0); in TEST()
420 strncat(to, from, from_size); in TEST()
422 strncat(to, from, 2 * from_size); in TEST()
424 EXPECT_DEATH(strncat(to - 1, from, 0), LeftOOBAccessMessage(1)); in TEST()
425 strncat(to, from + from_size - 1, 10); in TEST()
427 EXPECT_DEATH(strncat(to - 1, from, 2), LeftOOBAccessMessage(1)); in TEST()
428 EXPECT_DEATH(strncat(to, from - 1, 2), LeftOOBReadMessage(1)); in TEST()
429 EXPECT_DEATH(strncat(to, from + from_size, 2), RightOOBReadMessage(0)); in TEST()
435 EXPECT_DEATH(strncat(to, from, from_size + 1), RightOOBReadMessage(0)); in TEST()
439 EXPECT_DEATH(strncat(to, from, from_size - 1), RightOOBWriteMessage(0)); in TEST()
[all …]
/external/libexif/libexif/olympus/
Dmnote-olympus-entry.c543 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
563 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
608 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
612 strncat (v, _("Left to right"), maxlen - strlen (v)); in mnote_olympus_entry_get_value()
615 strncat (v, _("Right to left"), maxlen - strlen (v)); in mnote_olympus_entry_get_value()
618 strncat (v, _("Bottom to top"), maxlen - strlen (v)); in mnote_olympus_entry_get_value()
621 strncat (v, _("Top to bottom"), maxlen - strlen (v)); in mnote_olympus_entry_get_value()
626 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
635 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
643 strncat (v, buf, maxlen - strlen (v)); in mnote_olympus_entry_get_value()
[all …]
/external/u-boot/scripts/
Ddocproc.c122 strncat(real_filename, kernsrctree, PATH_MAX); in exec_kernel_doc()
123 strncat(real_filename, "/" KERNELDOCPATH KERNELDOC, in exec_kernel_doc()
203 strncat(real_filename, srctree, PATH_MAX); in find_export_symbols()
204 strncat(real_filename, "/", PATH_MAX - strlen(real_filename)); in find_export_symbols()
205 strncat(real_filename, filename, in find_export_symbols()
383 strncat(real_filename, kernsrctree, PATH_MAX); in find_all_symbols()
384 strncat(real_filename, "/" KERNELDOCPATH KERNELDOC, in find_all_symbols()
/external/v8/src/base/
Dfile-utils.cc27 strncat(*buffer, exec_path, path_separator + 1); in RelativePath()
28 strncat(*buffer, name, name_length); in RelativePath()
/external/compiler-rt/test/asan/TestCases/
Dstrncat_strict.c16 char* r = strncat(to + to_size, from, 2); in test1()
22 char* r = strncat(to, from, 1); in test2()
/external/icu/icu4c/as_is/os400/
Diculd.c152 strncat(objs,b,nlen); in main()
186 strncat(bnddirs,b,nlen); in main()
198 strncat(libs,p+1,strlen(p)-4); in main()
/external/llvm/test/Transforms/DeadStoreElimination/
Dlibcalls.ll36 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)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/DeadStoreElimination/
Dlibcalls.ll36 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)
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sockmap.c1060 strncat(options, "pass,", OPTSTRING); in test_options()
1062 strncat(options, "pass_noisy,", OPTSTRING); in test_options()
1064 strncat(options, "redir,", OPTSTRING); in test_options()
1066 strncat(options, "redir_noisy,", OPTSTRING); in test_options()
1068 strncat(options, "drop,", OPTSTRING); in test_options()
1071 strncat(options, tstr, OPTSTRING); in test_options()
1075 strncat(options, tstr, OPTSTRING); in test_options()
1079 strncat(options, tstr, OPTSTRING); in test_options()
1083 strncat(options, tstr, OPTSTRING); in test_options()
1086 strncat(options, "ingress,", OPTSTRING); in test_options()
[all …]
/external/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp12 extern "C" char *strncat(char *dst, const char *src, size_t n);
61 if (strncat(b1, b2, sizeof(b1) - 1 >= 0 && true)) {} // \ in f()
65 if (strncat(b1, b2, sizeof(b1) - 1) >= 0 && true) {} in f()
/external/clang/test/CodeGen/
Dlibcalls-fno-builtin.c19 char *strncat(char *s1, const char *s2, size_t n);
62 char *t7(char *x) { return strncat(x, "", 1); } in t7()

12345