opnsense-src/lib/libc
Kyle Evans c10d567ea0 include: de-macro __ssp_overlap(), improve semantics and checking
Switch away from pointer arithmetic to provide more obvious semantics
for checking overlap on pointer ranges.  This lets us remove some casts
that need not exist and removes some possible fragility in its use.

While we're here, check for overflow just in case; sometimes we use a
caller-supplied size if __builtin_object_size(3) can't deduce the buffer
size, and we should fail the check if the size is nonsensical for the
provided buffers.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
2024-07-13 00:16:23 -05:00
..
aarch64 libc/aarch64: Add a non-trivial getcontextx 2024-03-21 10:13:24 +00:00
amd64 Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
arm libc: Replace armv6 with armv7 in a comment 2024-06-20 09:26:22 +00:00
capability capsicum: introduce cap_rights_is_empty Function 2023-12-11 12:15:46 +01:00
compat-43 libsys: move __libsys_interposer consumers 2024-02-05 20:34:55 +00:00
csu libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
db libc: don't try to export mpool_stat 2024-04-16 22:14:20 +01:00
gdtoa libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
gen man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
gmon libc: don't try to export mexitcount 2024-04-16 22:14:20 +01:00
i386 lib{c,sys}: return wrapped syscall APIs to libc 2024-03-13 18:36:02 +00:00
iconv libc/iconv: don't export nonexistant symbols 2024-03-07 20:12:22 +00:00
include libthr: avoid gcc -Wcast-function-type 2024-07-03 08:38:32 -07:00
inet libc(inet_net_pton.c): fix "Fiery" spelling 2024-04-12 16:34:51 -06:00
isc lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
locale Update manual page references and macros to align to mandoc syntax 2024-04-23 12:50:54 -03:00
md Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nameser lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
net sctp: document sctp_recvmsg as implemented 2024-05-02 15:17:43 +02:00
nls libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
posix1e man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
powerpc libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
powerpc64 libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
powerpcspe libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
quad libc/quad: further narrow list of i386 symbols 2024-04-19 22:56:13 +01:00
regex Allow -DNO_STRICT_REGEX to restore historic regex behavior 2024-05-09 18:29:43 -07:00
resolv lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
riscv riscv: remove more riscv64sf support 2024-03-21 23:48:37 +00:00
rpc libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map 2024-05-24 16:47:37 -04:00
secure include: de-macro __ssp_overlap(), improve semantics and checking 2024-07-13 00:16:23 -05:00
softfloat libc/softfloat: we don't export _fp[gs]et* symbols 2024-03-13 20:35:41 +00:00
stdio Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
stdlib __cxa_thread_call_dtors(3): fix dtor pointer validity check 2024-05-04 02:23:15 +03:00
stdtime libc: Improve description of mktime() / timegm(). 2024-03-27 11:03:37 +01:00
string Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
sys Revert "lib{c,sys}: normalize export of openat, setcontext, and swapcontext" 2024-04-19 22:25:04 +01:00
tests libc: tests: add testing infrastructure for _FORTIFY_SOURCE 2024-07-13 00:16:23 -05:00
uuid libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
x86/gen libc: Move per-arch sys/Makefile.inc to libsys 2024-02-05 20:34:55 +00:00
xdr libc(xdr_reference.c): fix "referenced" spelling 2024-04-12 16:34:53 -06:00
yp libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map 2024-05-24 16:47:37 -04:00
libc.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libc_nossp.ldscript Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
Makefile.depend dirdeps: Update/fix Makefile.depend* for toolchain 2023-11-26 20:50:13 -05:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Versions.def Create namespace for the symbols added during 15-CURRENT cycle 2023-09-22 10:16:29 +02:00