HomeFreeBSD

lib/libc/tests/string: add test for strnlen()

Description

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

Details

Provenance
strajabotAuthored on Oct 14 2024, 9:09 PM
fuzCommitted on Oct 15 2024, 11:34 AM
Reviewer
fuz
Differential Revision
D46275: libc: add test for strnlen()
Parents
rG18b226ea08fb: lib/geom: remove redundant libraries and objects
Branches
Unknown
Tags
Unknown