]> 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>
Thu, 27 Jan 2022 22:42:27 +0000 (14:42 -0800)
commit33046deb9626e35b587db9e722111a450f952e44
treeef7b473136a233b570e31797738c55848d4663d2
parente218418d4925972ab7979b1712ec15d0cb645b76
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