freebsd-dev/contrib/netbsd-tests
John Baldwin d131218534 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
2022-12-28 09:39:18 -08:00
..
bin Add testcases for cat -b 2017-06-06 21:50:00 +00:00
crypto
dev
fs tmpfs tests: check for built-in tmpfs module 2020-10-02 00:52:31 +00:00
games
include
ipf
kernel sysv test: properly wait for children 2022-05-13 11:38:26 -05:00
lib h_resolv: Fix a buffer overflow in load(). 2022-12-28 09:39:18 -08:00
libexec/ld.elf_so
modules
net
rump
sbin newfs_msdos: connect the ATF test from NetBSD 2022-02-16 09:56:16 -06:00
share
sys
usr.bin sort: Make NetBSD sort tests compatible with our sort 2021-05-13 09:33:47 -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