]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r336605:
authorasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 15:47:34 +0000 (15:47 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 15:47:34 +0000 (15:47 +0000)
commitc9bcb75a81c72c9c8ad85f64f3c6e34e8fe1876c
treea3f51c08b4e72ae58d169c3799631a6e3935004b
parent6c47be48532abaf53c09831fbedf65fc35d6564f
MFC r336605:

Fix multiple Coverity warnings in tftpd(8)

* Initialize uninitialized variable (CID 1006502)
* strcpy => strlcpy (CID 100679210067911006790)
* Check function return values (CID 100944210094411009440)
* Delete dead code in receive_packet (not reported by Coverity)
* Remove redundant alarm(3) in receive_packet (not reported by Coverity)

Reported by: Coverity
CID: 1006502100679210067911006790100944210094411009440
Differential Revision: https://reviews.freebsd.org/D11287
libexec/tftpd/tftp-file.c
libexec/tftpd/tftp-io.c
libexec/tftpd/tftp-utils.c
libexec/tftpd/tftpd.c