opnsense-src/lib/libc/tests
Bojan Novković 3a686b851f dbm_nextkey: Always return an error if we've reached the end of the database
POSIX.1 states that `dbm_nextkey` must return an invalid key
(i.e., `key.dptr == NULL`) after the end of the database was reached.
The current implementation of `hash_seq` will incorrectly restart
the key sequence after the end of the database is reached.

Fix this by checking the "current bucket" index when R_NEXT is passed.

Sponsored by:   Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D51635
Reviewed by:	markj
2025-07-31 17:27:24 +02:00
..
c063 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
db dbm_nextkey: Always return an error if we've reached the end of the database 2025-07-31 17:27:24 +02:00
gen readdir: Fix error check. 2025-07-11 22:43:32 +02:00
hash Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
iconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
inet Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
locale libc: locale: fix EUC shift check 2025-04-20 13:29:45 -05:00
net Revert "Mark several getaddrinfo tests as XFAIL" 2025-05-28 15:18:51 -07:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-01 13:23:47 -07:00
regex Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
resolv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rpc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
secure include: ssp: fortify <signal.h> 2025-06-11 17:16:22 -06:00
setjmp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ssp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
stdio libc: Improve scanfloat test. 2025-05-16 17:44:10 +02:00
stdlib getenv_r tests: Fix getenv_r_erange 2025-05-06 13:49:17 +00:00
stdtime libc: Test time zone change detection. 2025-07-18 19:49:57 +02:00
string lib/libc/tests/string: add test for strnlen() 2024-10-15 13:34:45 +02:00
sys libc/powerpc64: Fix swapcontext(3) 2025-07-13 14:00:56 -04:00
termios Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
time Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tls Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tls_dso Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ttyio Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-09 13:38:22 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00