[Bug 277963] Increase MAXLOGNAME from 33 to 65
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 277963] Increase MAXLOGNAME from 33 to 65"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 May 2024 06:45:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277963 --- 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 codes 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 safe 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. -- You are receiving this mail because: You are the assignee for the bug.