History log of /src/lib/libc/tests/string/strnlen_test.c (Results 1 – 3 of 3)
Revision Date Author Comments
# 7bedae81 14-Oct-2024 Strahinja Stanišić <strajabot@FreeBSD.org>

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

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

show more ...


# 7bedae81 14-Oct-2024 Strahinja Stanišić <strajabot@FreeBSD.org>

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

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

show more ...


# 7bedae81 14-Oct-2024 Strahinja Stanišić <strajabot@FreeBSD.org>

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

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

show more ...