]> git.ipfire.org Git - thirdparty/glibc.git/commit
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>
Fri, 28 Jan 2022 00:25:31 +0000 (16:25 -0800)
commit8fa2afcec396d7d86784a4cd625e8eb1c6795028
treef9626793d3b8fbec71bc8b10dc55718be6e979a0
parent0717959eb30b9a19e2a64d433383c79ba1bd9872
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.

(cherry picked from commit cb882b21b63606aabd6e55afe23b42434d95f2ef)
string/test-strnlen.c