/external/clang/test/Analysis/ |
D | string-fail.c | 41 #define strnlen BUILTIN(strnlen) macro 42 size_t strnlen(const char *s, size_t maxlen); 45 if (strnlen(x, 10) < 5) in strnlen_liveness() 47 clang_analyzer_eval(strnlen(x, 10) < 5); // expected-warning{{FALSE}} in strnlen_liveness() 57 size_t a = strnlen(z.a, 10); in strnlen_subregion() 59 size_t b = strnlen(z.a, 10); in strnlen_subregion() 65 size_t c = strnlen(z.a, 10); in strnlen_subregion() 72 size_t a = strnlen(x, 10); in strnlen_argument() 73 size_t b = strnlen(x, 10); in strnlen_argument() 79 size_t c = strnlen(x, 10); in strnlen_argument() [all …]
|
D | string.c | 161 size_t strnlen(const char *s, size_t maxlen); 164 clang_analyzer_eval(strnlen("123", 10) == 3); // expected-warning{{TRUE}} in strnlen_constant0() 169 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}} in strnlen_constant1() 174 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}} in strnlen_constant2() 176 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{UNKNOWN}} in strnlen_constant2() 180 clang_analyzer_eval(strnlen("123456", 3) == 3); // expected-warning{{TRUE}} in strnlen_constant4() 185 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}} in strnlen_constant5() 190 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}} in strnlen_constant6() 192 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{UNKNOWN}} in strnlen_constant6() 196 …return strnlen(0, 3); // expected-warning{{Null pointer argument in call to string length function… in strnlen_null() [all …]
|
/external/clang/test/Sema/ |
D | enable_if.c | 22 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} 27 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() function 35 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma… 43 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici… 54 strnlen(s, i); in test2() 56 strnlen(s, 999); in test2() 58 strnlen(c, 1); in test2() 60 strnlen(c, i); in test2() 63 …strnlen(c, 999); // expected-error{{call to unavailable function 'strnlen': 'maxlen' is larger th… in test2()
|
/external/bison/m4/ |
D | strnlen.m4 | 1 # strnlen.m4 serial 13 12 dnl Persuade glibc <string.h> to declare strnlen(). 15 AC_CHECK_DECLS_ONCE([strnlen]) 20 dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). 29 # Prerequisites of lib/strnlen.c.
|
D | string_h.m4 | 31 strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r
|
/external/llvm/test/CodeGen/SystemZ/ |
D | strlen-01.ll | 6 declare i64 @strnlen(i8 *%src, i64 %len) 25 ; Test strnlen with its proper i64 prototype. 37 %res = call i64 @strnlen(i8 *%src, i64 %len)
|
D | strlen-02.ll | 6 declare i32 @strnlen(i8 *%src, i32 %len) 25 ; Test strnlen with an i32-based prototype. 37 %res = call i32 @strnlen(i8 *%src, i32 %len)
|
/external/bison/lib/ |
D | string.in.h | 428 # undef strnlen 429 # define strnlen rpl_strnlen macro 431 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 434 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 437 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 441 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 443 _GL_CXXALIASWARN (strnlen); 445 # undef strnlen 447 _GL_WARN_ON_USE (strnlen, "strnlen is unportable - "
|
D | strnlen.c | 26 strnlen (const char *string, size_t maxlen) in strnlen() function
|
D | strndup.c | 28 size_t len = strnlen (s, n); in strndup()
|
D | memchr.valgrind | 4 # implement strnlen). However, we use a safe word read to provide a speedup.
|
/external/e2fsprogs/misc/ |
D | e4defrag.c | 1114 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_statistic() 1293 strnlen(frag_rank[j - 1].msg_buffer, in file_statistic() 1307 strnlen(file, PATH_MAX)); in file_statistic() 1477 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_defrag() 1580 (int)strnlen(file, PATH_MAX), file); in file_defrag() 1801 strncpy(dev_name, argv[i], strnlen(argv[i], PATH_MAX)); in main() 1820 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); in main() 1874 mount_dir_len = strnlen(lost_found_dir, PATH_MAX); in main() 1877 PATH_MAX - strnlen(lost_found_dir, PATH_MAX)); in main() 1886 strnlen(lost_found_dir, in main() [all …]
|
/external/bison/linux-lib/ |
D | string.h | 740 # undef strnlen 741 # define strnlen rpl_strnlen 743 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 746 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 749 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 753 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 755 _GL_CXXALIASWARN (strnlen); 757 # undef strnlen 759 _GL_WARN_ON_USE (strnlen, "strnlen is unportable - "
|
/external/bison/darwin-lib/ |
D | string.h | 740 # undef strnlen 741 # define strnlen rpl_strnlen 743 _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 746 _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 749 _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 753 _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 755 _GL_CXXALIASWARN (strnlen); 757 # undef strnlen 759 _GL_WARN_ON_USE (strnlen, "strnlen is unportable - "
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 85 Ident(strnlen(str - 1, 0)); in TEST() 86 Ident(strnlen(str, size)); in TEST() 87 Ident(strnlen(str + size - 1, 1)); in TEST() 89 Ident(strnlen(str, 2 * size)); in TEST() 91 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST() 92 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST() 95 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST()
|
/external/openssh/openbsd-compat/ |
D | strnlen.c | 28 strnlen(const char *str, size_t maxlen) in strnlen() function
|
D | Makefile.in | 19 …le.o sha1.o sha2.o rmd160.o md5.o sigact.o strlcat.o strlcpy.o strmode.o strnlen.o strptime.o strs…
|
/external/elfutils/src/lib/ |
D | xstrndup.c | 44 size_t len = strnlen (string, n);
|
D | eu-config.h | 129 ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
|
/external/elfutils/bionic-fixup/ |
D | AndroidFixup.h | 22 #define strndupa(s, n) strncpy(alloca(strnlen(s, n) + 1), s, n)
|
/external/compiler-rt/lib/asan/ |
D | asan_interceptors.cc | 108 if (REAL(strnlen) != 0) { in MaybeRealStrnlen() 109 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen() 632 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) { in INTERCEPTOR() argument 634 ASAN_INTERCEPTOR_ENTER(ctx, strnlen); in INTERCEPTOR() 636 uptr length = REAL(strnlen)(s, maxlen); in INTERCEPTOR() 782 ASAN_INTERCEPT_FUNC(strnlen); in InitializeAsanInterceptors()
|
D | asan_interceptors.h | 89 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
|
/external/libedit/src/ |
D | strlcat.c | 81 size_t dlen = strnlen(dst, siz); in __weak_alias()
|
/external/compiler-rt/lib/msan/ |
D | msan_interceptors.cc | 286 INTERCEPTOR(SIZE_T, strnlen, const char *s, SIZE_T n) { in INTERCEPTOR() argument 288 SIZE_T res = REAL(strnlen)(s, n); in INTERCEPTOR() 307 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR() 358 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR() 369 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR() 404 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR() 912 SIZE_T real_len = REAL(strnlen)(name, len); in INTERCEPTOR() 1512 INTERCEPT_FUNCTION(strnlen); in InitializeInterceptors()
|
/external/bison/ |
D | Android.mk | 125 lib/strnlen.c \
|