]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
heimdal: The version string must always contain a terminating NUL
authorCy Schubert <cy@FreeBSD.org>
Mon, 21 Nov 2022 15:33:08 +0000 (07:33 -0800)
committerCy Schubert <cy@FreeBSD.org>
Thu, 24 Nov 2022 17:21:13 +0000 (09:21 -0800)
commitd7e8666ffb9967a92709a2d2ded4d31568ab1473
tree329ce0eb03cb6e892bd04ad960a3c9c3e0bfe85b
parent06703946d0be0baaf0f2a88f85e2dd5354e861da
heimdal: The version string must always contain a terminating NUL

Should the sender send a string without a terminating NUL, ensure that
the NUL terminates the string regardless.

And while at it only process the version string when bytes are returned.

PR: 267884
Reported by: Robert Morris <rtm@lcs.mit.edu>
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D37471
crypto/heimdal/lib/krb5/recvauth.c