Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2024 06:45:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277963] Increase MAXLOGNAME from 33 to 65
Message-ID:  <bug-277963-227-fIpebnLQgP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277963-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277963-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277963

--- Comment #1 from Baptiste Daroussin <bapt@FreeBSD.org> ---
sorry for late reply.


The main issue to switch MAXLOGNAME to 65 would be utmpx because it hard co=
des
32 which means the name will truncate the name.

If nothing has changed since I grew it to 33, the upgrade to 65 would be sa=
fe
as all consumers of MAXLOGNAME (in base at least) are properly checking
boundaries when manipulating strings, so worst case scenario is truncation,=
 but
no overflow.

So the right approach is imho to first upgrade utmpx (if this is possible at
all) and only after that upgrade MAXLOGNAME.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277963-227-fIpebnLQgP>