freebsd-nq/libexec/tftpd
Alan Somers 76e8e459e4 tftpd: Fix data corruption bug with netascii
Transferring files in netascii format requires, among other things,
translating all CR characters to a CR,NUL pair. tftpd does this correctly
except when the CR occurs as the last octet of a packet. In that case, it
erroneously drops the NUL which should be part of the following packet. The
bug was caused by using 0 as a sentinel value in a variable that could
legitimately hold 0. Fix it by switching the sentinel value to -1.

PR:		178055
Reported by:	Richard <rsitze@gmail.com>
Reviewed by:	cem
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16853
2018-08-22 23:31:27 +00:00
..
tests tftpd: misc Coverity cleanup in the tests 2018-03-22 14:51:05 +00:00
Makefile Add some functional tests for tftpd(8) 2018-03-09 15:30:20 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tftp-file.c tftpd: Fix data corruption bug with netascii 2018-08-22 23:31:27 +00:00
tftp-file.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-io.c Fix several Coverity warnings in tftp 2018-07-22 17:10:12 +00:00
tftp-io.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-options.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-options.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-transfer.c tftpd(8): when completing an WRQ, flush the file before acknowleding receipt 2018-07-21 19:48:31 +00:00
tftp-transfer.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftp-utils.c Fix several Coverity warnings in tftp 2018-07-22 17:10:12 +00:00
tftp-utils.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
tftpd.8
tftpd.c Fix multiple Coverity warnings in tftpd(8) 2018-07-22 16:14:30 +00:00