1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/sys/libkern
Kyle Evans cf8e5289a1 include: ssp: round out fortification of current set of headers
ssp/ssp.h needed some improvements:
 - `len` isn't always a size_t, it may need casted
 - In some cases we may want to use a len that isn't specified as a
    parameter (e.g., L_ctermid), so __ssp_redirect() should be more
    flexible.
 - In other cases we may want additional checking, so pull all of the
    declaration bits out of __ssp_redirect_raw() so that some functions
    can implement the body themselves.

strlcat/strlcpy should be the last of the fortified functions that get
their own __*_chk symbols, and these cases are only done to be
consistent with the rest of the str*() set.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45679
2024-07-13 00:16:24 -05:00
..
arm sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
arm64 arm64: Mark the armv8 crc32c as supporting BTI 2023-11-21 11:25:43 +00:00
x86 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
arc4random_uniform.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
arc4random.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ashldi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ashrdi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
asprintf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bcd.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bcopy.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bsearch.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cmpdi2.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
crc16.c
divdi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
divmoddi4.c divmoddi*: Use separate statements instead of the comma operator. 2023-07-07 13:01:19 -07:00
explicit_bzero.c include: ssp: round out fortification of current set of headers 2024-07-13 00:16:24 -05:00
fnmatch.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gsb_crc32.c gsb_crc32.c: avoid gcc -Wunused-const-variable in user build 2024-07-02 12:12:22 -07:00
iconv_converter_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
iconv_ucs.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
iconv_xlat16.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
iconv_xlat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
iconv.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_aton.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_ntoa.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_ntop.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_pton.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
jenkins_hash.c sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
lshrdi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
memcchr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
memchr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
memcmp.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
memmem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
memset.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
moddi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
murmur3_32.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
qdivrem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
qsort_r.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
qsort.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
quad.h sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
random.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
scanc.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
strcasecmp.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strcasestr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strcat.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strchr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strchrnul.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strcmp.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strcpy.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strcspn.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strdup.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strlcat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strlcpy.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strlen.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strncat.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
strncmp.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strncpy.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strndup.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strnlen.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strnstr.c
strrchr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strsep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strspn.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
strstr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strtol.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strtoq.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strtoul.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strtouq.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
strvalid.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
timingsafe_bcmp.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ucmpdi2.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
udivdi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
udivmoddi4.c sys: Add [u]divmoddi4 intrinsics on i386. 2023-07-01 12:22:44 -07:00
umoddi3.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00