Home
last modified time | relevance | path

Searched refs:strndup (Results 1 – 25 of 132) sorted by relevance

123456

/external/llvm-project/llvm/test/Transforms/InstCombine/
Dstrndup.ll7 declare i8* @strndup(i8*, i32)
15 %ret = call i8* @strndup(i8* %src, i32 0)
21 ; CHECK-NEXT: [[RET:%.*]] = call dereferenceable_or_null(5) i8* @strndup(i8* dereferenceable(6) …
25 %ret = call i8* @strndup(i8* %src, i32 4)
35 %ret = call i8* @strndup(i8* %src, i32 5)
45 %ret = call i8* @strndup(i8* %src, i32 6)
55 %ret = call i8* @strndup(i8* %src, i32 7)
61 ; CHECK-NEXT: [[RET:%.*]] = call i8* @strndup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @h…
65 %ret = call i8* @strndup(i8* %src, i32 %n)
/external/llvm-project/clang/test/Analysis/
Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { in strndup() function
126 (void)strndup(0, 20); // no-warning in useStrndup()
129 (void)strndup("hi there", n); // no-warning in useStrndup()
132 (void)strndup("hi there", n); in useStrndup()
/external/clang/test/Analysis/
Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { in strndup() function
126 (void)strndup(0, 20); // no-warning in useStrndup()
129 (void)strndup("hi there", n); // no-warning in useStrndup()
132 (void)strndup("hi there", n); in useStrndup()
Dtaint-generic.c25 char *strndup(const char *s, size_t n);
104 dup = strndup(s, 20); in testUncontrolledFormatString()
/external/llvm-project/compiler-rt/test/asan/TestCases/Posix/
Dstrndup_oob_test2.cpp17 char *copy = strndup(kChars, 3); in main()
18 copy = strndup(kChars, 10); in main()
Dstrndup_oob_test.cpp17 char *copy = strndup(kString, 2); in main()
/external/openssh/openbsd-compat/
Dstrndup.c28 strndup(const char *str, size_t maxlen) in strndup() function
42 DEF_WEAK(strndup);
/external/igt-gpu-tools/tools/
Dintel_opregion_decode.c155 s = strndup(header->sign, sizeof(header->sign)); in decode_header()
162 s = strndup(header->sver, sizeof(header->sver)); in decode_header()
166 s = strndup(header->vver, sizeof(header->vver)); in decode_header()
170 s = strndup(header->gver, sizeof(header->gver)); in decode_header()
179 s = strndup(header->dver, sizeof(header->dver)); in decode_header()
327 s = strndup(vbt->product_string, sizeof(vbt->product_string)); in decode_vbt()
/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_str_test.cpp167 new_str = strndup(str, size - 13); in TEST()
169 new_str = strndup(str + size - 1, 13); in TEST()
172 EXPECT_DEATH(Ident(strndup(str - 1, 13)), LeftOOBReadMessage(1)); in TEST()
173 EXPECT_DEATH(Ident(strndup(str + size, 13)), RightOOBReadMessage(0)); in TEST()
176 EXPECT_DEATH(Ident(strndup(str, size + 13)), RightOOBReadMessage(0)); in TEST()
178 Ident(new_str = strndup(str + size - 1, 0)); in TEST()
180 Ident(new_str = strndup(str + size - 1, 1)); in TEST()
182 EXPECT_DEATH(Ident(strndup(str + size - 1, 2)), RightOOBReadMessage(0)); in TEST()
/external/blktrace/iowatcher/
Dmpstat.c158 line = strndup(cur, cpu - cur); in count_mpstat_cpus()
169 cur = strndup(record, len); in count_mpstat_cpus()
194 tmp = strndup(trace_name, cur - trace_name); in guess_filename()
/external/toybox/toys/pending/
Dmdev.c117 char *regex = strndup(pos, end2-pos); in make_device()
148 char *str = strndup(pos, s-pos); in make_device()
159 char *str = strndup(s, end2-s); in make_device()
/external/llvm-project/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
69 if (strndup(b1, sizeof(b1) != 0)) {} // \ in f()
73 if (strndup(b1, sizeof(b1)) != 0) {} in f()
Dwarn-memset-bad-sizeof.cpp173 extern "C" char *strndup(const char *src, unsigned n);
188 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
/external/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
67 if (strndup(b1, sizeof(b1) != 0)) {} // \ in f()
71 if (strndup(b1, sizeof(b1)) != 0) {} in f()
Dwarn-memset-bad-sizeof.cpp130 extern "C" char *strndup(const char *src, unsigned n);
145 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
/external/libxkbcommon/src/compose/
Dpaths.c123 match = strndup(right, right_len); in resolve_name()
129 match = strndup(left, left_len); in resolve_name()
/external/tpm2-tss/src/tss2-tcti/
Dtctildr.c22 static char *strndup(const char* s, size_t n) in strndup() function
300 tmp = strndup (info_src->name, PATH_MAX); in copy_info()
307 tmp = strndup (info_src->description, PATH_MAX); in copy_info()
316 tmp = strndup (info_src->config_help, PATH_MAX); in copy_info()
/external/llvm-project/compiler-rt/test/msan/
Dstrndup.cpp17 char *copy = strndup(kString, 4); // BOOM in main()
Dscoped-interceptors.cpp26 char *copy = strndup(uninit, sizeof(uninit)); // BOOM in main()
/external/llvm-project/clang/test/Sema/
Dbuiltins-gnu-mode.c9 int strndup; variable
/external/clang/test/Sema/
Dbuiltins-gnu-mode.c9 int strndup; variable
/external/llvm/test/Transforms/InstCombine/
Dobjsize.ll175 declare noalias i8* @strndup(i8* nocapture, i32) nounwind
188 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
197 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
206 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
215 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
/external/mesa3d/src/util/
Dstrndup.h37 strndup(const char *str, size_t max) in strndup() function
/external/libepoxy/test/
Degl_has_extension_nocontext.c61 an_extension = strndup(extensions, first_space - extensions); in main()
/external/capstone/suite/cstest/src/
Dhelper.c126 tmp_tmp = strndup(tmp, orig_found - tmp); in replace_hex()
186 tmp_tmp = strndup(tmp, orig_found - tmp); in replace_negative()

123456