| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cstring-syntax.c | 21 size_t strlcat(char *, const char *, size_t); 55 strlcat(dest, "bbbb", (sizeof("bbbb") - 1) - sizeof(dest) - 1); in testStrlcat() 57 strlcat(dest, "910", sizeof(dest)); in testStrlcat() 60 strlcat(dest, "0123456789", badlen / 2); in testStrlcat() 61 …strlcat(dest, "0123456789", badlen); // expected-warning {{The third argument allows to potentiall… in testStrlcat() 62 strlcat(dest, "0123456789", badlen - strlen(dest) - 1); in testStrlcat() 63 strlcat(dest, src, ulen); in testStrlcat() 65 …strlcat(dest + 5, src, badlen); // expected-warning {{The third argument allows to potentially cop… in testStrlcat() 66 strlcat(dest, "aaaaaaaaaaaaaaa", 10); // no-warning in testStrlcat()
|
| H A D | bsd-string.c | 11 size_t strlcat(char *dst, const char *src, size_t n); 25 len = strlcat(buf, "efgh", sizeof(buf)); // expected-no-warning in f2() 40 …strlcat(NULL, "abcdef", 6); // expected-warning{{Null pointer passed as 1st argument to string con… in f5() 46 size_t len = strlcat(buf, "defg", 4); in f6() 66 len = strlcat(buf,"456", sizeof(buf)); in f8() 72 len = strlcat(buf,"789", 0); in f8() 95 len = strlcat(buf,"cd", unknown_size); in f9() 115 len = strlcat(buf + 2, unknown_src + 1, sizeof(buf)); in f9() 125 strlcat(buf, "efghi", 9); in f10() 134 strlcat(b, a, sizeof(b)); // no-warning in f11() [all …]
|
| H A D | security-syntax-checks.m | 238 … copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119}}
|
| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | strlcat_test.cpp | 16 EXPECT_EQ(__llvm_libc::strlcat(buf, str, 3), size_t(4)); in TEST() 18 EXPECT_EQ(__llvm_libc::strlcat(buf, str, 4), size_t(4)); in TEST() 26 EXPECT_EQ(__llvm_libc::strlcat(buf, str, 7), size_t(4)); in TEST() 33 EXPECT_EQ(__llvm_libc::strlcat(buf, str, 1), size_t(3)); in TEST() 35 EXPECT_EQ(__llvm_libc::strlcat(buf, str, 2), size_t(4)); in TEST()
|
| H A D | CMakeLists.txt | 133 libc.src.string.strlcat
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | strlcat.cpp | 14 len = strlcat(dst, src, sizeof(dst)); in test1() 23 len = strlcat(dst, src, sizeof(dst)); in test2() 32 len = strlcat(dst, src, sizeof(dst)); in test3() 41 len = strlcat(dst, src, sizeof(dst)); in test4()
|
| H A D | strlcpy.cpp | 23 len = strlcat(dst, src, sizeof(dst)); in test2() 32 len = strlcat(dst, src, sizeof(dst)); in test3() 41 len = strlcat(dst, src, sizeof(dst)); in test4()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-strlcpycat-size.c | 5 size_t strlcat (char * restrict dst, const char * restrict src, size_t size); 24 …strlcat(s2, s3, sizeof(s3)); // expected-warning {{size argument in 'strlcat' call appears to be s… in f()
|
| H A D | builtins-gnu-mode.c | 19 int strlcat; variable
|
| H A D | builtins.c | 221 size_t strlcat(char * restrict dst, const char * restrict src, size_t size); 234 …strlcat(buf, b, sizeof(b)); // expected-warning {{size argument in 'strlcat' call appears to be si… in Test19()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | warn-memsize-comparison.cpp | 15 extern "C" size_t strlcat(char *dst, const char *src, size_t size); 81 if (strlcat(b1, b2, sizeof(b1) != 0)) {} // \ in f() 85 if (strlcat(b1, b2, sizeof(b1)) != 0) {} in f()
|
| /llvm-project-15.0.7/libc/src/string/ |
| H A D | strlcat.h | 16 size_t strlcat(char *__restrict dst, const char *__restrict src, size_t size);
|
| H A D | strlcat.cpp | 16 LLVM_LIBC_FUNCTION(size_t, strlcat,
|
| H A D | CMakeLists.txt | 132 strlcat 134 strlcat.cpp 136 strlcat.h
|
| /llvm-project-15.0.7/libc/spec/ |
| H A D | bsd_ext.td | 9 "strlcat",
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNBRegisterInfo.cpp | 151 strlcat(str, " }", sizeof(str)); in Dump() 235 strlcat(str, " }", sizeof(str)); in Dump()
|
| /llvm-project-15.0.7/libc/config/linux/arm/ |
| H A D | entrypoints.txt | 38 libc.src.string.strlcat
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CStringChecker.cpp | 77 enum class ConcatFnKind { none = 0, strcat = 1, strlcat = 2 }; enumerator 1601 /* appendK = */ ConcatFnKind::strlcat, in evalStrlcat() 1705 case ConcatFnKind::strlcat: in evalStrcpyCommon() 1766 case ConcatFnKind::strlcat: in evalStrcpyCommon() 1837 if (appendK == ConcatFnKind::strlcat && dstStrLengthNL && strLengthNL) { in evalStrcpyCommon() 1903 if (appendK == ConcatFnKind::strlcat || appendK == ConcatFnKind::none) in evalStrcpyCommon()
|
| /llvm-project-15.0.7/libc/config/darwin/arm/ |
| H A D | entrypoints.txt | 38 libc.src.string.strlcat
|
| /llvm-project-15.0.7/libc/config/windows/ |
| H A D | entrypoints.txt | 38 libc.src.string.strlcat
|
| /llvm-project-15.0.7/libc/config/linux/aarch64/ |
| H A D | entrypoints.txt | 43 libc.src.string.strlcat
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | fortify-folding.ll | 183 ; CHECK-NEXT: [[STRLCAT:%.*]] = call i64 @strlcat(i8* getelementptr inbounds ([60 x i8], [60 x i… 205 ; CHECK-NEXT: [[STRLCAT:%.*]] = tail call i64 @strlcat(i8* getelementptr inbounds ([60 x i8], [6…
|
| /llvm-project-15.0.7/libc/config/linux/x86_64/ |
| H A D | entrypoints.txt | 43 libc.src.string.strlcat
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.def | 1303 /// size_t strlcat(char *dst, const char *src, size_t size); 1304 TLI_DEFINE_ENUM_INTERNAL(strlcat) 1305 TLI_DEFINE_STRING_INTERNAL("strlcat")
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Builtins.def | 1147 LIBBUILTIN(strlcat, "zc*cC*z", "f", "string.h", ALL_GNU_LANGUAGES)
|