cvs commit: src/lib/libutil login_times.c
Robert Watson
rwatson at FreeBSD.org
Sun Jan 15 16:52:21 PST 2006
rwatson 2006-01-16 00:52:20 UTC
FreeBSD src repository
Modified files:
lib/libutil login_times.c
Log:
Replace strncpy() with strlcpy() when parsing login time limit strings
from /etc/login.conf, or an unterminated string buffer could result.
Probably, login_times.c should reject excessively long time strings as
unparseable, rather than truncating, which might render an invalid
string valid.
Found with: Coverity Prevent (tm)
Reviewed by: csjp
MFC after: 3 days
Revision Changes Path
1.10 +1 -1 src/lib/libutil/login_times.c
More information about the cvs-src
mailing list