Lines Matching refs:p_size
199 const size_t p_size = __member_size(p); in strncpy() local
201 if (__compiletime_lessthan(p_size, size)) in strncpy()
203 if (p_size < size) in strncpy()
204 fortify_panic(FORTIFY_FUNC_strncpy, FORTIFY_WRITE, p_size, size, p); in strncpy()
221 const size_t p_size = __member_size(p); in strnlen() local
228 if (maxlen >= p_size) in strnlen()
233 ret = __real_strnlen(p, maxlen < p_size ? maxlen : p_size); in strnlen()
234 if (p_size <= ret && maxlen != ret) in strnlen()
235 fortify_panic(FORTIFY_FUNC_strnlen, FORTIFY_READ, p_size, ret + 1, ret); in strnlen()
263 const size_t p_size = __member_size(p); in __fortify_strlen() local
267 if (p_size == SIZE_MAX) in __fortify_strlen()
269 ret = strnlen(p, p_size); in __fortify_strlen()
270 if (p_size <= ret) in __fortify_strlen()
271 fortify_panic(FORTIFY_FUNC_strlen, FORTIFY_READ, p_size, ret + 1, ret); in __fortify_strlen()
280 const size_t p_size = __member_size(p); in sized_strscpy() local
285 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in sized_strscpy()
292 if (__compiletime_lessthan(p_size, size)) in sized_strscpy()
296 if (__compiletime_lessthan(p_size, SIZE_MAX)) { in sized_strscpy()
321 if (p_size < len) in sized_strscpy()
322 fortify_panic(FORTIFY_FUNC_strscpy, FORTIFY_WRITE, p_size, len, -E2BIG); in sized_strscpy()
361 const size_t p_size = __member_size(p); in strlcat() local
367 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcat()
379 if (p_size <= p_len) in strlcat()
380 fortify_panic(FORTIFY_FUNC_strlcat, FORTIFY_READ, p_size, p_len + 1, wanted); in strlcat()
388 if (p_size <= actual) in strlcat()
389 fortify_panic(FORTIFY_FUNC_strlcat, FORTIFY_WRITE, p_size, actual + 1, wanted); in strlcat()
415 const size_t p_size = __member_size(p); in strcat() local
416 const size_t wanted = strlcat(p, q, p_size); in strcat()
418 if (p_size <= wanted) in strcat()
419 fortify_panic(FORTIFY_FUNC_strcat, FORTIFY_WRITE, p_size, wanted + 1, p); in strcat()
446 const size_t p_size = __member_size(p); in strncat() local
450 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat()
455 if (p_size < total) in strncat()
456 fortify_panic(FORTIFY_FUNC_strncat, FORTIFY_WRITE, p_size, total, p); in strncat()
463 const size_t p_size, in fortify_memset_chk() argument
474 if (__compiletime_lessthan(p_size_field, p_size) && in fortify_memset_chk()
475 __compiletime_lessthan(p_size, size)) in fortify_memset_chk()
496 if (p_size != SIZE_MAX && p_size < size) in fortify_memset_chk()
497 fortify_panic(FORTIFY_FUNC_memset, FORTIFY_WRITE, p_size, size, true); in fortify_memset_chk()
501 #define __fortify_memset_chk(p, c, size, p_size, p_size_field) ({ \ argument
503 fortify_memset_chk(__fortify_size, p_size, p_size_field), \
548 const size_t p_size, in fortify_memcpy_chk() argument
562 if (__compiletime_lessthan(p_size_field, p_size) && in fortify_memcpy_chk()
563 __compiletime_lessthan(p_size, size)) in fortify_memcpy_chk()
596 if (p_size != SIZE_MAX && p_size < size) in fortify_memcpy_chk()
597 fortify_panic(func, FORTIFY_WRITE, p_size, size, true); in fortify_memcpy_chk()
599 fortify_panic(func, FORTIFY_READ, p_size, size, true); in fortify_memcpy_chk()
613 p_size != p_size_field && p_size_field < size) in fortify_memcpy_chk()
625 #define __fortify_memcpy_chk(p, q, size, p_size, q_size, \ argument
628 const size_t __p_size = (p_size); \
702 const size_t p_size = __struct_size(p); in memscan() local
704 if (__compiletime_lessthan(p_size, size)) in memscan()
706 if (p_size < size) in memscan()
707 fortify_panic(FORTIFY_FUNC_memscan, FORTIFY_READ, p_size, size, NULL); in memscan()
714 const size_t p_size = __struct_size(p); in memcmp() local
718 if (__compiletime_lessthan(p_size, size)) in memcmp()
723 if (p_size < size) in memcmp()
724 fortify_panic(FORTIFY_FUNC_memcmp, FORTIFY_READ, p_size, size, INT_MIN); in memcmp()
733 const size_t p_size = __struct_size(p); in memchr() local
735 if (__compiletime_lessthan(p_size, size)) in memchr()
737 if (p_size < size) in memchr()
738 fortify_panic(FORTIFY_FUNC_memchr, FORTIFY_READ, p_size, size, NULL); in memchr()
745 const size_t p_size = __struct_size(p); in memchr_inv() local
747 if (__compiletime_lessthan(p_size, size)) in memchr_inv()
749 if (p_size < size) in memchr_inv()
750 fortify_panic(FORTIFY_FUNC_memchr_inv, FORTIFY_READ, p_size, size, NULL); in memchr_inv()
758 const size_t p_size = __struct_size(p); in kmemdup_noprof() local
760 if (__compiletime_lessthan(p_size, size)) in kmemdup_noprof()
762 if (p_size < size) in kmemdup_noprof()
763 fortify_panic(FORTIFY_FUNC_kmemdup, FORTIFY_READ, p_size, size, in kmemdup_noprof()
787 const size_t p_size = __member_size(p); in strcpy() local
792 if (__builtin_constant_p(p_size) && in strcpy()
794 p_size == SIZE_MAX && q_size == SIZE_MAX) in strcpy()
798 if (__compiletime_lessthan(p_size, size)) in strcpy()
801 if (p_size < size) in strcpy()
802 fortify_panic(FORTIFY_FUNC_strcpy, FORTIFY_WRITE, p_size, size, p); in strcpy()