test-strnlen.c: Check that strnlen won't go beyond the maximum length
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 27 Mar 2021 16:06:39 +0000 (09:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 27 Mar 2021 18:38:11 +0000 (11:38 -0700)
commitcb882b21b63606aabd6e55afe23b42434d95f2ef
treed9741b3a3a75adcd6ff73de353bc8cd5a38d6d5f
parent86859b7e58d8670b186c5209ba25f0fbd6612fb7
test-strnlen.c: Check that strnlen won't go beyond the maximum length

Place strings ending at page boundary without the null byte.  If an
implementation goes beyond EXP_LEN, it will trigger the segfault.
string/test-strnlen.c