freebsd-src/contrib/netbsd-tests
John Baldwin 519395f62d h_resolv: Fix a buffer overflow in load().
fgetln() returns a pointer to an array of characters that is 'len'
characters long, not 'len + 1'.  While here, overwriting the contents
of the buffer returned by fgetln isn't really safe, so switch to using
getline() instead.

Note that these fixes are a subset of those applied to a
near-identical copy of this function in libc's resolv_test.c in commit
2afeaad315.

Reviewed by:	ngie
Reported by:	CHERI (buffer overflow)
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D37886

(cherry picked from commit d131218534)
2023-09-06 14:56:09 -07:00
..
bin
crypto
dev
fs tmpfs tests: check for built-in tmpfs module 2020-10-02 00:52:31 +00:00
games
include
ipf
kernel Temporarily skip flakey sys.kern.sysv_test.msg in CI 2020-06-26 17:58:10 +00:00
lib h_resolv: Fix a buffer overflow in load(). 2023-09-06 14:56:09 -07:00
libexec/ld.elf_so
modules
net
rump
sbin newfs_msdos: connect the ATF test from NetBSD 2022-03-02 15:56:30 -06:00
share
sys
usr.bin sort: Make NetBSD sort tests compatible with our sort 2021-05-20 09:15:46 -04:00
usr.sbin mtree: Fix -f -f not considering type changes. 2019-09-12 18:44:48 +00:00
FREEBSD-upgrade
h_macros.h