/external/clang/test/Sema/ |
D | 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 in test() 31 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // no-warning - the code might a… in test() 33 …strncat(dest, src, sizeof(src)); // expected-warning {{size argument in 'strncat' call appears to … in test() 35 …strncat(dest, src, sizeof(src) - 1); // expected-warning {{size argument in 'strncat' call appears… in test() 37 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning{{the value of the … in test() 39 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in test() 41 …strncat((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appea… in test() 42 …strncat(s1+3, s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appears to be… in test() [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | 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 in test() 31 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // no-warning - the code might a… in test() 33 …strncat(dest, src, sizeof(src)); // expected-warning {{size argument in 'strncat' call appears to … in test() 35 …strncat(dest, src, sizeof(src) - 1); // expected-warning {{size argument in 'strncat' call appears… in test() 37 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning{{the value of the … in test() 39 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in test() 41 …strncat((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appea… in test() 42 …strncat(s1+3, s2, sizeof(s2)); // expected-warning {{size argument in 'strncat' call appears to be… in test() [all …]
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | strncat-2.ll | 2 ; Test that the strncat libcall simplifier works correctly. 11 declare i8* @strncat(i8*, i8*, i32) 23 call i8* @strncat(i8* %dst, i8* %src, i32 13) 34 call i8* @strncat(i8* %dst, i8* %src, i32 13) 45 call i8* @strncat(i8* %dst, i8* %src, i32 0) 51 ; CHECK-NEXT: [[TMP1:%.*]] = call i8* @strncat(i8* nonnull dereferenceable(1) getelementptr inbo… 57 call i8* @strncat(i8* %dst, i8* %src, i32 1) 61 ; strncat(nonnull x, nonnull y, n) -> strncat(nonnull x, y, n) 64 ; CHECK-NEXT: [[TEMP1:%.*]] = call i8* @strncat(i8* nonnull [[STR1:%.*]], i8* nonnull [[STR2:%.*… 68 %temp1 = call i8* @strncat(i8* nonnull %str1, i8* nonnull %str2, i32 %n) [all …]
|
D | 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)
|
D | strncat-3.ll | 2 ; Test that the strncat libcall simplifier works correctly. 12 declare i16* @strncat(i8*, i8*, i32) 16 ; CHECK-NEXT: [[TMP1:%.*]] = call i16* @strncat(i8* getelementptr inbounds ([32 x i8], [32 x i8]… 22 call i16* @strncat(i8* %dst, i8* %src, i32 13)
|
/external/llvm/test/Transforms/InstCombine/ |
D | 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)
|
D | 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)
|
D | 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/iperf3/src/ |
D | iperf_util.c | 252 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/clang/test/Analysis/ |
D | cstring-syntax.c | 4 char *strncat(char *, const char *, size_t); 9 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential … in testStrncat() 10 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer… in testStrncat() 11 …strncat(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()
|
D | string.c | 543 #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() 562 …strncat(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() 580 …strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_0() 586 …strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_1() 592 …strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the… in strncat_overflow_2() [all …]
|
D | cstring-syntax-cxx.cpp | 19 char strncat (); 21 return strncat (); in main()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | dump.c | 57 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 …]
|
D | parse.c | 814 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/llvm-project/clang/test/Analysis/ |
D | cstring-syntax.c | 18 char *strncat(char *, const char *, size_t); 25 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential … in testStrncat() 26 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer… in testStrncat() 27 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in testStrncat() 28 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}} in testStrncat() 30 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(char)); in testStrncat()
|
D | string.c | 627 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1) macro 631 #define strncat BUILTIN(strncat) macro 632 char *strncat(char *restrict s1, const char *restrict s2, size_t n); 638 …strncat(NULL, x, 4); // expected-warning{{Null pointer passed as 1st argument to string concatenat… in strncat_null_dst() 642 …strncat(x, NULL, 4); // expected-warning{{Null pointer passed as 2nd argument to string concatenat… in strncat_null_src() 646 …strncat(x, (char*)&strncat_fn, 4); // expected-warning{{Argument to string concatenation function … in strncat_fn() 657 clang_analyzer_eval(strncat(x, y, strlen(y)) == x); // expected-warning{{TRUE}} in strncat_effects() 665 strncat(x, y, strlen(y)); in strncat_overflow_0() 672 strncat(x, y, strlen(y)); in strncat_overflow_1() 679 strncat(x, y, strlen(y)); in strncat_overflow_2() [all …]
|
D | cstring-syntax-cxx.cpp | 19 char strncat (); 21 return strncat (); in main()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 419 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/llvm-project/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cpp | 457 strncat(to, from, 0); in TEST() 458 strncat(to, from, from_size); in TEST() 460 strncat(to, from, 2 * from_size); in TEST() 461 strncat(to, from + from_size - 1, 10); in TEST() 463 EXPECT_DEATH(strncat(to - 1, from, 2), LeftOOBAccessMessage(1)); in TEST() 464 EXPECT_DEATH(strncat(to, from - 1, 2), LeftOOBReadMessage(1)); in TEST() 465 EXPECT_DEATH(strncat(to, from + from_size, 2), RightOOBReadMessage(0)); in TEST() 471 EXPECT_DEATH(strncat(to, from, from_size + 1), RightOOBReadMessage(0)); in TEST() 475 EXPECT_DEATH(strncat(to, from, from_size - 1), RightOOBWriteMessage(0)); in TEST() 477 strncat(to, from, from_size - 2); in TEST() [all …]
|
/external/compiler-rt/test/asan/TestCases/ |
D | strncat_strict.c | 16 char* r = strncat(to + to_size, from, 2); in test1() 22 char* r = strncat(to, from, 1); in test2()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/ |
D | strncat_strict.c | 16 char* r = strncat(to + to_size, from, 2); in test1() 22 char* r = strncat(to, from, 1); in test2()
|
/external/libdrm/tests/amdgpu/ |
D | ras_tests.c | 615 strncat(path, "ras_ctrl", sizeof(path) - strlen(path)); in amdgpu_ras_invoke() 634 strncat(name, ras_block_str(block), sizeof(name) - strlen(name)); in amdgpu_ras_query_err_count() 635 strncat(name, "_err_count", sizeof(name) - strlen(name)); in amdgpu_ras_query_err_count() 859 strncat(path, "ras_ctrl", sizeof(path) - strlen(path)); in amdgpu_ras_basic_test() 865 strncat(path, "features", sizeof(path) - strlen(path)); in amdgpu_ras_basic_test() 879 strncat(path, ras_block_str(j), sizeof(path) - strlen(path)); in amdgpu_ras_basic_test() 880 strncat(path, "_err_count", sizeof(path) - strlen(path)); in amdgpu_ras_basic_test() 886 strncat(path, ras_block_str(j), sizeof(path) - strlen(path)); in amdgpu_ras_basic_test() 887 strncat(path, "_err_inject", sizeof(path) - strlen(path)); in amdgpu_ras_basic_test()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_printf.c | 127 strncat(format, type_fmt, sizeof(format) - strlen(format) - 1); in lp_build_print_value() 132 strncat(format, type_fmt, sizeof(format) - strlen(format) - 1); in lp_build_print_value() 147 strncat(format, "\n", sizeof(format) - strlen(format) - 1); in lp_build_print_value()
|
/external/icu/icu4c/as_is/os400/ |
D | iculd.c | 152 strncat(objs,b,nlen); in main() 186 strncat(bnddirs,b,nlen); in main() 198 strncat(libs,p+1,strlen(p)-4); in main()
|
/external/mesa3d/src/util/ |
D | u_debug.c | 373 strncat(output, "|", sizeof(output) - strlen(output) - 1); in debug_dump_flags() 376 strncat(output, names->name, sizeof(output) - strlen(output) - 1); in debug_dump_flags() 385 strncat(output, "|", sizeof(output) - strlen(output) - 1); in debug_dump_flags() 390 strncat(output, rest, sizeof(output) - strlen(output) - 1); in debug_dump_flags()
|