<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/tests/string/strnlen_test.c, branch stable/15</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>lib/libc/tests/string: add test for strnlen()</title>
<updated>2024-10-15T11:34:45+00:00</updated>
<author>
<name>Strahinja Stanišić</name>
<email>strajabot@FreeBSD.org</email>
</author>
<published>2024-10-14T21:09:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7bedae81adaff4b4d291ba1f650b5b915ce207bf'/>
<id>7bedae81adaff4b4d291ba1f650b5b915ce207bf</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
