]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Replace occurrences of strncpy(3) with strlcpy(3); most of
authormike <mike@FreeBSD.org>
Sun, 12 Aug 2001 17:54:49 +0000 (17:54 +0000)
committermike <mike@FreeBSD.org>
Sun, 12 Aug 2001 17:54:49 +0000 (17:54 +0000)
commitc675f2ec8719164bb49bfaa2d7f39bb3604ec69b
tree1be212b72c442830541aa0c43bc10fb0adcccb0e
parentb4724cab6a316b175fbe2c8a4cb908ea5f5320ce
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
usr.bin/login/login.c