/netbsd-6-1-5-RELEASE/lib/libc/ssp/ |
H A D | strcat_chk.c | 40 __strcat_chk(char * __restrict dst, const char * __restrict src, size_t slen) argument 45 if (slen-- == 0) 50 if (slen-- == 0) 55 if (slen-- == 0)
|
H A D | strncat_chk.c | 42 size_t slen) 49 if (len > slen) 53 if (slen-- == 0) 60 if (slen-- == 0) 65 if (slen-- == 0) 41 __strncat_chk(char * __restrict dst, const char * __restrict src, size_t len, size_t slen) argument
|
H A D | sprintf_chk.c | 47 __sprintf_chk(char * __restrict buf, int flags, size_t slen, argument 54 if (slen > (size_t)INT_MAX) 57 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 && (size_t)rv >= slen)
|
H A D | vsprintf_chk.c | 47 __vsprintf_chk(char * __restrict buf, int flags, size_t slen, argument 52 if (slen > (size_t)INT_MAX) 55 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 && (size_t)rv >= slen)
|
H A D | memcpy_chk.c | 43 size_t slen) 45 if (len > slen) 42 __memcpy_chk(void * __restrict dst, const void * __restrict src, size_t len, size_t slen) argument
|
H A D | memmove_chk.c | 43 size_t slen) 45 if (len > slen) 42 __memmove_chk(void *dst, void *src, size_t len, size_t slen) argument
|
H A D | memset_chk.c | 42 __memset_chk(void * __restrict dst, int val, size_t len, size_t slen) argument 44 if (len > slen)
|
H A D | strcpy_chk.c | 42 __strcpy_chk(char * __restrict dst, const char * __restrict src, size_t slen) argument 46 if (len >= slen)
|
H A D | strncpy_chk.c | 43 size_t slen) 45 if (len > slen) 42 __strncpy_chk(char * __restrict dst, const char * __restrict src, size_t len, size_t slen) argument
|
H A D | gets_chk.c | 46 __gets_chk(char * __restrict buf, size_t slen) argument 51 if (slen >= (size_t)INT_MAX) 54 if ((abuf = malloc(slen + 1)) == NULL) 57 if (fgets(abuf, (int)(slen + 1), stdin) == NULL) { 66 if (len >= slen)
|
H A D | fgets_chk.c | 46 __fgets_chk(char * __restrict buf, int len, size_t slen, FILE *fp) argument 48 if (slen >= (size_t)INT_MAX) 51 if (len >= 0 && (size_t)len > slen)
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libssp/ |
H A D | gets-chk.c | 57 __gets_chk (char *s, size_t slen) argument 61 if (slen >= (size_t) INT_MAX) 64 if (slen <= 8192) 65 buf = alloca (slen + 1); 67 buf = malloc (slen + 1); 71 ret = fgets (buf, (int) (slen + 1), stdin); 77 if (len == slen) 84 if (slen > 8192)
|
H A D | strcat-chk.c | 45 size_t slen) 53 if (slen-- == 0) 59 ++slen; 64 if (slen-- == 0) 44 __strcat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t slen) argument
|
H A D | strncat-chk.c | 45 size_t n, size_t slen) 52 if (slen-- == 0) 58 ++slen; 66 if (slen-- == 0) 72 if (slen-- == 0) 78 if (slen-- == 0) 84 if (slen-- == 0) 90 if (slen-- == 0) 102 if (slen-- == 0) 113 if (slen 44 __strncat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t n, size_t slen) argument [all...] |
H A D | sprintf-chk.c | 50 size_t slen, const char *format, ...) 56 if (slen > (size_t) INT_MAX) 60 done = vsnprintf (s, slen, format, arg); 61 if (done >= 0 && (size_t) done >= slen) 49 __sprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, ...) argument
|
H A D | vsprintf-chk.c | 49 size_t slen, const char *format, va_list arg) 53 if (slen > (size_t) INT_MAX) 57 done = vsnprintf (s, slen, format, arg); 58 if (done >= 0 && (size_t) done >= slen) 48 __vsprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, va_list arg) argument
|
H A D | memcpy-chk.c | 45 size_t len, size_t slen) 47 if (len > slen) 44 __memcpy_chk(void *__restrict__ dest, const void *__restrict__ src, size_t len, size_t slen) argument
|
H A D | memmove-chk.c | 45 __memmove_chk (void *dest, const void *src, size_t len, size_t slen) argument 47 if (len > slen)
|
H A D | mempcpy-chk.c | 46 size_t len, size_t slen) 48 if (len > slen) 45 __mempcpy_chk(void *__restrict__ dest, const void *__restrict__ src, size_t len, size_t slen) argument
|
H A D | memset-chk.c | 44 __memset_chk (void *dest, int val, size_t len, size_t slen) argument 46 if (len > slen)
|
H A D | stpcpy-chk.c | 45 size_t slen) 48 if (len >= slen) 44 __stpcpy_chk(char *__restrict__ dest, const char *__restrict__ src, size_t slen) argument
|
H A D | strcpy-chk.c | 45 size_t slen) 48 if (len >= slen) 44 __strcpy_chk(char *__restrict__ dest, const char *__restrict__ src, size_t slen) argument
|
H A D | strncpy-chk.c | 45 size_t len, size_t slen) 47 if (len > slen) 44 __strncpy_chk(char *__restrict__ dest, const char *__restrict__ src, size_t len, size_t slen) argument
|
H A D | vsnprintf-chk.c | 46 size_t slen, const char *format, va_list arg) 48 if (n > slen) 45 __vsnprintf_chk(char *s, size_t n, int flags __attribute__((unused)), size_t slen, const char *format, va_list arg) argument
|
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/ |
H A D | addext.c | 59 size_t slen = strlen (s), extlen = strlen (ext); local 63 if (slen + extlen <= _POSIX_NAME_MAX && ! HAVE_DOS_FILE_NAMES) 85 slen -= dot + 1 - s; 94 if (slen + extlen <= slen_max) 95 strcpy (s + slen, ext); 98 if (slen_max <= slen) 99 slen = slen_max - 1; 100 s[slen] = e; 101 s[slen + 1] = 0;
|