]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336609:
authorasomers <asomers@FreeBSD.org>
Thu, 21 Mar 2019 21:45:18 +0000 (21:45 +0000)
committerasomers <asomers@FreeBSD.org>
Thu, 21 Mar 2019 21:45:18 +0000 (21:45 +0000)
commit879220856d3efe674532738c1b3b903256bb8672
tree266579a068850aab1bf9ebb5b838e7d848816403
parent249417738386019161f0de48230122acf7a71601
MFC r336609:

Fix several Coverity warnings in tftp

Some of the changes are in the libexec/tftpd directory, but to functions that
are only used by tftp(1) (they share some code).

* strcpy => strlcpy (1006793100679410067961006741)
* Unchecked return value and TOCTTOU (1009314)
* NULL pointer dereference (10180351018036)

Reported by: Coverity
CID: 100679310067941006796100674110093141018035
CID: 1018036
libexec/tftpd/tftp-io.c
libexec/tftpd/tftp-utils.c
usr.bin/tftp/main.c
usr.bin/tftp/tftp.c