opnsense-src/lib/libc/tests
Alan Somers 3dc01440a0 Fix lib/libc/nss/getgr_test with large numbers of groups
These tests create a linked list with one entry for every group on the
running system.  On a system with about 30,000 groups, the test took 69
seconds to run, and crashed Kyua with the below error:

kyua: E: string or blob too big (sqlite op: sqlite3_bind_blob) (sqlite db: /root/.kyua/store/results.usr_tests.20241231-203317-570235.db).

Fix the test by limiting it to operating on the first 1024 groups.
Apply the same change to getpw_test and getserv_test too, which are
vulnerable to the same problem.

Sponsored by:	ConnectWise
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D48275

(cherry picked from commit d11904b350214943dedb64c7121d4602799d7afd)
2025-01-20 09:54:45 -07:00
..
c063 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
db Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
gen libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
hash Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
iconv libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
inet Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
locale libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
net Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-20 09:54:45 -07:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:25 -05:00
resolv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
setjmp Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ssp libc/tests: Further refine the condition for installing h_raw 2024-07-14 12:16:32 -04:00
stdio libc: fix access mode tests in fmemopen(3) 2024-10-29 15:11:38 -04:00
stdlib pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
stdtime strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
string lib/libc/tests/string: add memrchr unit tests 2024-01-24 20:39:30 +01:00
sys libc/sys: add errno test 2024-03-02 07:05:05 +02:00
termios Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tls pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
tls_dso pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
ttyio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00