]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r336609:
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Oct 2018 16:09:20 +0000 (16:09 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Oct 2018 16:09:20 +0000 (16:09 +0000)
commitc19ef9a1e4c79a93deed854dfb70e89fac71e3d3
tree48f601f4edb61f53183060fd8c953efb8d98c2f5
parenta6d6f1626d357420b75f115eb05e868bfed348a3
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@339060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libexec/tftpd/tftp-io.c
libexec/tftpd/tftp-utils.c
usr.bin/tftp/main.c
usr.bin/tftp/tftp.c