/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | strndup.ll | 7 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/ |
D | malloc-interprocedural.c | 105 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/ |
D | malloc-interprocedural.c | 105 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()
|
D | taint-generic.c | 25 char *strndup(const char *s, size_t n); 104 dup = strndup(s, 20); in testUncontrolledFormatString()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/Posix/ |
D | strndup_oob_test2.cpp | 17 char *copy = strndup(kChars, 3); in main() 18 copy = strndup(kChars, 10); in main()
|
D | strndup_oob_test.cpp | 17 char *copy = strndup(kString, 2); in main()
|
/external/openssh/openbsd-compat/ |
D | strndup.c | 28 strndup(const char *str, size_t maxlen) in strndup() function 42 DEF_WEAK(strndup);
|
/external/igt-gpu-tools/tools/ |
D | intel_opregion_decode.c | 155 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/ |
D | asan_str_test.cpp | 167 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/ |
D | mpstat.c | 158 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/ |
D | mdev.c | 117 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/ |
D | warn-memsize-comparison.cpp | 13 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()
|
D | warn-memset-bad-sizeof.cpp | 173 extern "C" char *strndup(const char *src, unsigned n); 188 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
|
/external/clang/test/SemaCXX/ |
D | warn-memsize-comparison.cpp | 13 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()
|
D | warn-memset-bad-sizeof.cpp | 130 extern "C" char *strndup(const char *src, unsigned n); 145 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
|
/external/libxkbcommon/src/compose/ |
D | paths.c | 123 match = strndup(right, right_len); in resolve_name() 129 match = strndup(left, left_len); in resolve_name()
|
/external/tpm2-tss/src/tss2-tcti/ |
D | tctildr.c | 22 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/ |
D | strndup.cpp | 17 char *copy = strndup(kString, 4); // BOOM in main()
|
D | scoped-interceptors.cpp | 26 char *copy = strndup(uninit, sizeof(uninit)); // BOOM in main()
|
/external/llvm-project/clang/test/Sema/ |
D | builtins-gnu-mode.c | 9 int strndup; variable
|
/external/clang/test/Sema/ |
D | builtins-gnu-mode.c | 9 int strndup; variable
|
/external/llvm/test/Transforms/InstCombine/ |
D | objsize.ll | 175 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/ |
D | strndup.h | 37 strndup(const char *str, size_t max) in strndup() function
|
/external/libepoxy/test/ |
D | egl_has_extension_nocontext.c | 61 an_extension = strndup(extensions, first_space - extensions); in main()
|
/external/capstone/suite/cstest/src/ |
D | helper.c | 126 tmp_tmp = strndup(tmp, orig_found - tmp); in replace_hex() 186 tmp_tmp = strndup(tmp, orig_found - tmp); in replace_negative()
|