/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/bison/m4/ |
D | strnlen.m4 | 1 # strnlen.m4 serial 5 9 AC_LIBSOURCES([strnlen.c, strnlen.h]) 11 dnl Persuade glibc <string.h> to declare strnlen(). 18 # lib/strnlen.c. 19 #AC_LIBOBJ(strnlen) 20 AC_DEFINE(strnlen, rpl_strnlen, definition 26 # Prerequisites of lib/strnlen.c. 28 AC_CHECK_DECLS_ONCE(strnlen)
|
/external/valgrind/main/drd/ |
D | drd_strmem_intercepts.c | 52 STRNLEN(VG_Z_LIBC_SONAME, strnlen) 54 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
|
/external/bison/lib/ |
D | strnlen.h | 29 extern size_t strnlen(const char *string, size_t maxlen);
|
D | strnlen.c | 29 strnlen (const char *string, size_t maxlen) in strnlen() function
|
D | strndup.c | 34 # define __strnlen strnlen
|
D | Makefile | 45 strdup.c strdup.h strerror.c strndup.c strndup.h strnlen.c \ 46 strnlen.h strtol.c strtoul.c strverscmp.c strverscmp.h \ 69 $(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \ 392 include $(DEPDIR)/strnlen.Po
|
D | Makefile.in | 45 strdup.c strdup.h strerror.c strndup.c strndup.h strnlen.c \ 46 strnlen.h strtol.c strtoul.c strverscmp.c strverscmp.h \ 69 $(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \ 392 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnlen.Po@am__quote@
|
/external/elfutils/lib/ |
D | xstrndup.c | 41 size_t len = strnlen (string, n);
|
D | eu-config.h | 164 ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
|
/external/compiler-rt/lib/asan/ |
D | asan_interceptors.cc | 89 if (REAL(strnlen) != 0) { in MaybeRealStrnlen() 90 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen() 469 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) { in INTERCEPTOR() argument 471 uptr length = REAL(strnlen)(s, maxlen); in INTERCEPTOR() 649 ASAN_INTERCEPT_FUNC(strnlen); in InitializeAsanInterceptors()
|
D | asan_interceptors.h | 26 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
|
D | asan_intercepted_functions.h | 133 DECLARE_FUNCTION_AND_WRAPPER(uptr, strnlen, const char *s, uptr maxlen);
|
/external/kernel-headers/original/linux/ |
D | string.h | 67 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
|
/external/elfutils/host-darwin-fixup/ |
D | AndroidFixup.h | 40 static inline size_t strnlen (const char *__string, size_t __maxlen) in strnlen() function
|
/external/compiler-rt/lib/asan/dynamic/ |
D | asan_interceptors_dynamic.cc | 65 INTERPOSE_FUNCTION(strnlen),
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_test.cc | 956 Ident(strnlen(str - 1, 0)); in TEST() 957 Ident(strnlen(str, size)); in TEST() 958 Ident(strnlen(str + size - 1, 1)); in TEST() 960 Ident(strnlen(str, 2 * size)); in TEST() 962 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBErrorMessage(1)); in TEST() 963 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBErrorMessage(0)); in TEST() 966 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBErrorMessage(0)); in TEST()
|
/external/llvm/include/llvm/Target/ |
D | TargetLibraryInfo.h | 298 strnlen, enumerator
|
/external/kernel-headers/original/asm-x86/ |
D | string_32.h | 200 extern size_t strnlen(const char * s, size_t count);
|
/external/iptables/extensions/ |
D | libxt_string.c | 84 info->patlen = strnlen(s, XT_STRING_MAX_PATTERN_SIZE); in parse_string()
|
/external/valgrind/main/exp-sgcheck/ |
D | h_intercepts.c | 111 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
|
/external/e2fsprogs/e2fsck/ |
D | e2fsck.h | 363 #define strnlen(str, x) e2fsck_strnlen((str),(x)) macro
|
/external/bison/ |
D | config.hin | 118 /* Define to 1 if you have the declaration of `strnlen', and to 0 if you 406 #undef strnlen
|
/external/bison/build-aux/ |
D | Makefile.in | 62 $(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \
|