]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid copying too much from the input string.
authorbrooks <brooks@FreeBSD.org>
Fri, 19 Jul 2019 23:58:30 +0000 (23:58 +0000)
committerbrooks <brooks@FreeBSD.org>
Fri, 19 Jul 2019 23:58:30 +0000 (23:58 +0000)
commit89d0159a18879c8d9fe02a35d3b91aa98f3e1821
treea52eeaef037ec2953f1112aedc2522fbb2036472
parent1a4fa3280840dd8176033f94792cba460c9baca0
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
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D21004
lib/libc/tests/string/wcsnlen_test.c