is ut_user[] in struct utmpx NUL terminated?
    Don Lewis 
    truckman at FreeBSD.org
       
    Sun May 15 23:07:23 UTC 2016
    
    
  
There is a lot of code that expects ut_user[] to be NUL terminated.
There is also a lot of code that sets ut_user[] using strncmp(), which
will not guarantee NUL termination of this field if the name is
sufficiently long.
This doesn't matter as long as user names are kept short enough, but
there doesn't seem to be any limit enforced by the passwd file format or
getpwent().
    
    
More information about the freebsd-arch
mailing list