Date: Sun, 12 Aug 2001 10:54:49 -0700 (PDT) From: Mike Barcroft <mike@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/login login.c Message-ID: <200108121754.f7CHsnG88701@freefall.freebsd.org>
index | next in thread | raw e-mail
mike 2001/08/12 10:54:49 PDT
Modified files:
usr.bin/login login.c
Log:
o Replace occurrences of strncpy(3) with strlcpy(3); most of
the uses of it were wrong anyway.
o Always check for NULL returns on strdup(3).
o Fix a possible buffer overflow in strcpy(3).
o Fix a format string vulnerability.
o t->ty_type in stypeof() could be NULL and eventually cause
a segmentation fault in setenv(3), so check for that.
Eyeballed by: kris
Reviewed by: murray
MFC after: 3 days
Revision Changes Path
1.66 +48 -24 src/usr.bin/login/login.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108121754.f7CHsnG88701>
