1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/lib/libc/tests/string
Strahinja Stanišić 7bedae81ad lib/libc/tests/string: add test for strnlen()
Tests for strnlen, checks alignments from up to 16 and buffer sizes up
to 64, also checks that passing SIZE_MAX as maxlen works, because it can
cause a wraparound error if strnlen is incorrect.

Reviewed by:	fuz, emaste (GSoC mentors), kib
Sponsored by:	Google LLC (GSoC 2024)
Differential Revision:	https://reviews.freebsd.org/D46275
2024-10-15 13:34:45 +02:00
..
bcmp_test.c
ffs_test.c
ffsl_test.c
ffsll_test.c
fls_test.c
flsl_test.c
flsll_test.c
Makefile
Makefile.depend
memccpy_test.c
memcmp_test.c
memrchr_test.c
memset_s_test.c
memset_test.c
stpncpy_test.c
strcmp_test.c
strcspn_test.c
strerror_test.c
strlcpy_test.c
strncmp_test.c
strnlen_test.c
strspn_test.c
strverscmp_test.c
strxfrm_test.c
timingsafe_bcmp_test.c
timingsafe_memcmp_test.c
wcscasecmp_test.c
wcscoll_test.c
wcsnlen_test.c