Home
last modified time | relevance | path

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

123456

/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/syslinux/com32/hdt/
Dhdt-cli-kernel.c64 strncat(kernel_modules, " | ", 3); in main_show_kernel()
66 strncat(kernel_modules, in main_show_kernel()
75 strncat(buffer, "(", 1); in main_show_kernel()
76 strncat(buffer, kernel_modules, sizeof(kernel_modules)); in main_show_kernel()
78 strncat(buffer, ")", 1); in main_show_kernel()
79 strncat(buffer, " # ", 3); in main_show_kernel()
84 strncat(buffer, "\n", 1); in main_show_kernel()
114 strncat(kernel_modules, in show_kernel_modules()
117 strncat(kernel_modules, " ", 1); in show_kernel_modules()
122 strncat(modules[pci_device->class[2]], kernel_modules, in show_kernel_modules()
Dhdt-menu-pci.c107 strncat(kernel_modules, " | ", 3); in compute_pci_device()
109 strncat(kernel_modules, in compute_pci_device()
162 strncat(kernel_modules, " | ", 3); in compute_PCI()
164 strncat(kernel_modules, in compute_PCI()
Dhdt-cli-pci.c102 strncat(kernel_modules, " | ", 3); in show_pci_device()
104 strncat(kernel_modules, in show_pci_device()
182 strncat(kernel_modules, " | ", 3); in show_pci_devices()
184 strncat(kernel_modules, in show_pci_devices()
Dhdt-menu-kernel.c63 strncat(kernel_modules, " | ", 3); in compute_kernel()
65 strncat(kernel_modules, in compute_kernel()
/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/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/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/valgrind/memcheck/tests/
Doverlap.c97 strncat(b, a, 25); in main()
101 strncat(b, a, 26); in main()
105 strncat(b, a, 27); in main()
112 strncat(a+20, a, 21); // run twice to check 2nd error isn't shown in main()
113 strncat(a, a+20, 21); in main()
Doverlap.stderr.exp21 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:...)
/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/libmicrohttpd/doc/examples/
Dtlsauthentication.c49 strncat (tmp, &lookup[(l >> 18) & 0x3F], 1); in string_to_base64()
50 strncat (tmp, &lookup[(l >> 12) & 0x3F], 1); in string_to_base64()
53 strncat (tmp, &lookup[(l >> 6) & 0x3F], 1); in string_to_base64()
55 strncat (tmp, &lookup[l & 0x3F], 1); in string_to_base64()
59 strncat (tmp, "===", 3 - length % 3); in string_to_base64()
/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/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/bison/lib/
Dstring.in.h378 # undef strncat
379 # define strncat rpl_strncat macro
381 _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
383 _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n));
385 _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
387 _GL_CXXALIASWARN (strncat);
389 # undef strncat
391 _GL_WARN_ON_USE (strncat, "strncat is unportable - "
/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/syslinux/com32/modules/
Dpcitest.c75 strncat(kernel_modules, " | ", 3); in display_pci_devices()
77 strncat(kernel_modules, in display_pci_devices()

123456