]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r350160:
authorBrooks Davis <brooks@FreeBSD.org>
Thu, 1 Aug 2019 23:28:54 +0000 (23:28 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Thu, 1 Aug 2019 23:28:54 +0000 (23:28 +0000)
commit7359c88be34ffc9ae0042826f0778f89d9a82314
tree9c346065f362892764a5c6569544fe827afc5c8a
parent84003b9fdacff0f1075484c3a1fba811f9246668
MFC r350160:

Avoid copying too much from the input string.

This avoids reading past the end of the static strings.  On a system
with bounds checking these tests fault.

Reviewed by: asomers
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D21004
lib/libc/tests/string/wcsnlen_test.c