freebsd-src/stand/libsa
Warner Losh a5b4ec5281 stand: More protection against malformed smbios tables
Add some more sanity checks to make sure we don't march off the end of
the table. Typically, smbios structures are well formed, or Windows
wouldn't boot. Sometimes they aren't, and this at least fails safe.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D39794
2023-05-01 15:12:41 -06:00
..
amd64 libsa: Add missing GNU-stack annotations to _setjmp.S. 2022-11-22 08:36:40 -08:00
geli stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
i386 libsa: Add missing GNU-stack annotations to _setjmp.S. 2022-11-22 08:36:40 -08:00
powerpc libsa: Add missing GNU-stack annotations to _setjmp.S. 2022-11-22 08:36:40 -08:00
x86 Add support for hypervisor check on x86 2019-10-24 20:02:48 +00:00
zfs stand: Add isspace to FreeBSD ctypes.h 2023-05-01 15:02:54 -06:00
__main.c
abort.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
arp.c libsa/arp.c: Change printf format string 2022-09-29 12:51:14 +02:00
assert.c The libstand's panic() appends its own '\n' to the message, so that users of the API 2018-11-29 18:37:48 +00:00
bcd.c
bootp.c stand: use snprintf here 2022-08-03 11:24:38 -06:00
bootp.h
bootparam.c
bootparam.h
bzipfs.c stand: Use c99 structure initialization for bzipfs_fsops 2022-07-24 16:53:35 -06:00
cd9660.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
cd9660read.c loader: cd9660_open() warn: is 'buf' large enough for 'struct iso_primary_descriptor'? 2019-12-13 12:36:16 +00:00
close.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
closeall.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
crc32_libkern.c Separate kernel crc32() implementation to its own header (gsb_crc32.h) and 2019-06-17 19:49:08 +00:00
dev.c stand: dev can't be NULL in default_prasedev 2023-01-13 15:54:44 -07:00
dosfs.c stand: Unbreak FAT32 in loader 2022-09-08 02:16:34 +02:00
dosfs.h
environment.c libsa: remove leftover whitespace 2020-08-19 20:41:22 +00:00
ether.c
ext2fs.c stand: Minor cleanup 2023-02-27 16:26:49 -07:00
fstat.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
getopt.c
gets.c
globals.c
gpt.c stand: Nuke double-semicolons 2022-11-02 09:34:54 -06:00
gpt.h Eliminate unused uuid parameters from gptread and gptread_table. We 2019-06-05 02:34:58 +00:00
gzipfs.c stand: Use c99 structure initialization for gzipfs_fsops 2022-07-24 16:53:35 -06:00
hexdump.c zalloc_malloc:Free hexdump preceeding buffer when we detect overflow 2020-08-29 21:05:43 +00:00
in_cksum.c stand: Minor cleanup 2023-02-27 16:26:49 -07:00
inet_ntoa.c ANSIify libsa functions 2021-11-18 22:43:02 -07:00
ioctl.c stand: Make ioctl declaration consistent 2022-12-12 21:46:34 -07:00
iodesc.h loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
ip.c Remove unnecessary include from libstand. 2018-10-31 19:59:20 +00:00
libsa.3 stand: Add dv_match 2022-11-30 15:30:33 -07:00
lseek.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
Makefile stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
Makefile.depend Enable veriexec for loader 2019-02-26 06:22:10 +00:00
mount.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
net.c loader: ip: Do not call getsecs so much 2021-12-16 11:50:36 +01:00
net.h loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
netif.c libsa/netif.c: Replace #if with #ifdef 2022-09-29 12:52:02 +02:00
netif.h
nfs.c stand: Use c99 structure initialization for nfs_fsops 2022-07-24 16:53:35 -06:00
nfsv2.h
nullfs.c
nvstore.c stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
nvstore.h stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
open.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
pager.c
panic.c
pkgfs.c stand: Use c99 structure initialization for pkgfs_fsops 2022-07-24 16:53:35 -06:00
preload.c loader: Add preload operation to fs_ops 2021-12-16 11:50:38 +01:00
printf.c loader printf: Profile with TSLOG 2021-09-24 20:23:49 -07:00
random.c
rarp.c libsa/rarp.c: Change casted type and printf format 2022-09-29 12:51:14 +02:00
read.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
readdir.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
rpc.c
rpc.h
rpcv2.h
saioctl.h
sbrk.c The libstand's panic() appends its own '\n' to the message, so that users of the API 2018-11-29 18:37:48 +00:00
smbios.c stand: More protection against malformed smbios tables 2023-05-01 15:12:41 -06:00
smbios.h Move smbios.c to libsa. 2020-02-20 00:46:22 +00:00
splitfs.c stand: Use c99 structure initialization for splitfs_fsops 2022-07-24 16:53:35 -06:00
stand.h stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
stat.c ANSIify libsa functions 2021-11-18 22:43:02 -07:00
strcasecmp.c ANSIify libsa functions 2021-11-18 22:43:02 -07:00
strdup.c ANSIify libsa functions 2021-11-18 22:43:02 -07:00
strerror.c
tftp.c libsa: make single bit bitfields unsigned to avoid clang 16 warning 2023-04-17 18:26:11 +02:00
tftp.h
time.c Implement some time variables from kernel 2020-09-29 16:29:50 +00:00
tslog.c loader tslog: Don't use sprintf 2021-09-24 20:23:37 -07:00
twiddle.c loader: Set twiddle globaldiv to 16 by default 2021-09-28 15:24:02 -07:00
udp.c Remove unnecessary include from libstand. 2018-10-31 19:59:20 +00:00
ufs.c stand: Minor cleanup 2023-02-27 16:26:49 -07:00
ufsread.c
uuid_from_string.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
uuid_to_string.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
write.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
xlocale_private.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
zalloc.c stand: Fix a common typo in source code comments 2022-06-05 09:49:51 +02:00
zalloc_defs.h stand: remove mips support 2021-12-10 11:05:31 -07:00
zalloc_malloc.c zalloc_malloc:Free hexdump preceeding buffer when we detect overflow 2020-08-29 21:05:43 +00:00
zalloc_mem.h loader: cstyle cleanup libsa zalloc sources 2019-09-17 11:35:53 +00:00
zalloc_protos.h loader: add memalign() to libsa 2019-09-17 13:15:27 +00:00