/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 | 24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} 29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() function 37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma… 45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici… 56 strnlen(s, i); in test2() 58 strnlen(s, 999); in test2() 60 strnlen(c, 1); in test2() 62 strnlen(c, i); in test2() 65 …strnlen(c, 999); // expected-error{{call to unavailable function 'strnlen': 'maxlen' is larger th… in test2()
|
/external/compiler-rt/test/sanitizer_common/TestCases/ |
D | strnlen.c | 7 assert(strnlen(s, 0) == 0UL); in main() 8 assert(strnlen(s, 1) == 1UL); in main() 9 assert(strnlen(s, 6) == strlen(s)); in main() 10 assert(strnlen(s, 7) == strlen(s)); in main()
|
/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.
|
/external/llvm/test/CodeGen/SystemZ/ |
D | strlen-nobuiltin.ll | 1 ; Test that strlen/strnlen won't be converted to SRST if calls are 7 declare i64 @strnlen(i8 *%src, i64 %len) 17 ; Likewise for strnlen. 21 ; CHECK: brasl %r14, strnlen 23 %res = call i64 @strnlen(i8 *%src, i64 %len) nobuiltin
|
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)
|
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)
|
/external/llvm/test/Instrumentation/EfficiencySanitizer/ |
D | str-nobuiltin.ll | 13 declare i64 @strnlen(i8* %a, i64 %b) 21 ; CHECK: call{{.*}}@strnlen{{.*}} #[[ATTR]] 31 tail call i64 @strnlen(i8* %a, i64 12)
|
/external/llvm/test/Instrumentation/ThreadSanitizer/ |
D | str-nobuiltin.ll | 13 declare i64 @strnlen(i8* %a, i64 %b) 21 ; CHECK: call{{.*}}@strnlen{{.*}} #[[ATTR]] 31 tail call i64 @strnlen(i8* %a, i64 12)
|
/external/llvm/test/Instrumentation/AddressSanitizer/ |
D | str-nobuiltin.ll | 13 declare i64 @strnlen(i8* %a, i64 %b) 21 ; CHECK: call{{.*}}@strnlen{{.*}} #[[ATTR]] 31 tail call i64 @strnlen(i8* %a, i64 12)
|
/external/llvm/test/Instrumentation/MemorySanitizer/ |
D | str-nobuiltin.ll | 13 declare i64 @strnlen(i8* %a, i64 %b) 21 ; CHECK: call{{.*}}@strnlen{{.*}} #[[ATTR]] 31 tail call i64 @strnlen(i8* %a, i64 12)
|
/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()
|
/external/e2fsprogs/misc/ |
D | e4defrag.c | 1064 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_statistic() 1243 strnlen(frag_rank[j - 1].msg_buffer, in file_statistic() 1257 strnlen(file, PATH_MAX)); in file_statistic() 1427 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_defrag() 1530 (int)strnlen(file, PATH_MAX), file); in file_defrag() 1751 strncpy(dev_name, argv[i], strnlen(argv[i], PATH_MAX)); in main() 1770 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); in main() 1824 mount_dir_len = strnlen(lost_found_dir, PATH_MAX); in main() 1827 PATH_MAX - strnlen(lost_found_dir, PATH_MAX)); in main() 1836 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 | 115 Ident(strnlen(str - 1, 0)); in TEST() 116 Ident(strnlen(str, size)); in TEST() 117 Ident(strnlen(str + size - 1, 1)); in TEST() 119 Ident(strnlen(str, 2 * size)); in TEST() 121 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST() 122 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST() 125 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST()
|
/external/syslinux/com32/lib/ |
D | dhcpunpack.c | 88 opt[67].len = strnlen((const char *)pkt->file, 128); in dhcp_unpack_packet() 103 opt[66].len = strnlen((const char *)pkt->sname, 64); in dhcp_unpack_packet()
|
D | strnlen.c | 7 size_t strnlen(const char *s, size_t n) in strnlen() function
|
/external/openssh/openbsd-compat/ |
D | strnlen.c | 28 strnlen(const char *str, size_t maxlen) in strnlen() function
|
/external/elfutils/lib/ |
D | xstrndup.c | 42 size_t len = strnlen (string, n); in xstrndup()
|
/external/mesa3d/src/util/ |
D | strndup.c | 38 n = strnlen(str, max); in strndup()
|
/external/syslinux/dos/ |
D | printf.c | 18 static int strnlen(const char *s, int maxlen) in strnlen() function 208 len = strnlen(s, precision); in vsprintf()
|