HomeFreeBSD

heimdal: The version string must always contain a terminating NUL

Description

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>
Differential Revision: https://reviews.freebsd.org/D37471

(cherry picked from commit d7e8666ffb9967a92709a2d2ded4d31568ab1473)

Details

Provenance
cyAuthored on Nov 21 2022, 3:33 PM
Differential Revision
D37471: Fix PR/267884
Parents
rGe2861c40b1aa: contrib/tzdata: import tzdata 2022g
Branches
Unknown
Tags
Unknown