Home
last modified time | relevance | path

Searched refs:strlcat (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/clang/test/Analysis/
H A Dcstring-syntax.c21 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 Dbsd-string.c11 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 Dsecurity-syntax-checks.m238 … 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 Dstrlcat_test.cpp16 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 DCMakeLists.txt133 libc.src.string.strlcat
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dstrlcat.cpp14 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 Dstrlcpy.cpp23 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 Dwarn-strlcpycat-size.c5 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 Dbuiltins-gnu-mode.c19 int strlcat; variable
H A Dbuiltins.c221 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 Dwarn-memsize-comparison.cpp15 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 Dstrlcat.h16 size_t strlcat(char *__restrict dst, const char *__restrict src, size_t size);
H A Dstrlcat.cpp16 LLVM_LIBC_FUNCTION(size_t, strlcat,
H A DCMakeLists.txt132 strlcat
134 strlcat.cpp
136 strlcat.h
/llvm-project-15.0.7/libc/spec/
H A Dbsd_ext.td9 "strlcat",
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DDNBRegisterInfo.cpp151 strlcat(str, " }", sizeof(str)); in Dump()
235 strlcat(str, " }", sizeof(str)); in Dump()
/llvm-project-15.0.7/libc/config/linux/arm/
H A Dentrypoints.txt38 libc.src.string.strlcat
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp77 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 Dentrypoints.txt38 libc.src.string.strlcat
/llvm-project-15.0.7/libc/config/windows/
H A Dentrypoints.txt38 libc.src.string.strlcat
/llvm-project-15.0.7/libc/config/linux/aarch64/
H A Dentrypoints.txt43 libc.src.string.strlcat
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dfortify-folding.ll183 ; 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 Dentrypoints.txt43 libc.src.string.strlcat
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def1303 /// 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 DBuiltins.def1147 LIBBUILTIN(strlcat, "zc*cC*z", "f", "string.h", ALL_GNU_LANGUAGES)

12