Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 – 25 of 51) sorted by relevance

123

/external/clang/test/Analysis/
Dstring-fail.c41 #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 …]
Dstring.c161 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/
Dstrnlen.m41 # 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/
Ddrd_strmem_intercepts.c52 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
54 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
/external/bison/lib/
Dstrnlen.h29 extern size_t strnlen(const char *string, size_t maxlen);
Dstrnlen.c29 strnlen (const char *string, size_t maxlen) in strnlen() function
Dstrndup.c34 # define __strnlen strnlen
DMakefile45 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
DMakefile.in45 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/
Dxstrndup.c41 size_t len = strnlen (string, n);
Deu-config.h164 ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc89 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()
Dasan_interceptors.h26 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
Dasan_intercepted_functions.h133 DECLARE_FUNCTION_AND_WRAPPER(uptr, strnlen, const char *s, uptr maxlen);
/external/kernel-headers/original/linux/
Dstring.h67 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
/external/elfutils/host-darwin-fixup/
DAndroidFixup.h40 static inline size_t strnlen (const char *__string, size_t __maxlen) in strnlen() function
/external/compiler-rt/lib/asan/dynamic/
Dasan_interceptors_dynamic.cc65 INTERPOSE_FUNCTION(strnlen),
/external/compiler-rt/lib/asan/tests/
Dasan_test.cc956 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/
DTargetLibraryInfo.h298 strnlen, enumerator
/external/kernel-headers/original/asm-x86/
Dstring_32.h200 extern size_t strnlen(const char * s, size_t count);
/external/iptables/extensions/
Dlibxt_string.c84 info->patlen = strnlen(s, XT_STRING_MAX_PATTERN_SIZE); in parse_string()
/external/valgrind/main/exp-sgcheck/
Dh_intercepts.c111 STRNLEN(VG_Z_LIBC_SONAME, strnlen)
/external/e2fsprogs/e2fsck/
De2fsck.h363 #define strnlen(str, x) e2fsck_strnlen((str),(x)) macro
/external/bison/
Dconfig.hin118 /* Define to 1 if you have the declaration of `strnlen', and to 0 if you
406 #undef strnlen
/external/bison/build-aux/
DMakefile.in62 $(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \

123