freebsd-src/libexec
Alan Somers 28b454a277 MFC r338216:
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
Differential Revision:	https://reviews.freebsd.org/D16853
2018-10-01 16:11:09 +00:00
..
atf MFC r320491: 2017-07-31 03:59:07 +00:00
atrun MFC r314653: 2017-07-20 00:52:11 +00:00
bootpd MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
comsat MFC: r262136 2014-02-24 08:21:49 +00:00
fingerd MFC: r262136 2014-02-24 08:21:49 +00:00
ftpd MFC r326562: Use strlcpy(). 2017-12-20 07:18:07 +00:00
getty MFC r282245: 2015-05-06 09:38:44 +00:00
hyperv MFC 321762 2017-08-07 02:15:13 +00:00
mail.local MFC r314653: 2017-07-20 00:52:11 +00:00
mknetid MFC: r262136 2014-02-24 08:21:49 +00:00
pppoed In libexec/pppoed/pppoed.c, use the correct printf length modifier for a 2011-12-16 16:07:39 +00:00
rbootd MFC: r262136 2014-02-24 08:21:49 +00:00
revnetgroup MFC: r262136 2014-02-24 08:21:49 +00:00
rlogind MFC r320644: 2017-07-04 15:53:54 +00:00
rpc.rquotad The NFS quota-reporting RPC uses 32-bit sized fields. We approximate 2010-04-25 00:05:51 +00:00
rpc.rstatd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rusersd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rwalld MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.sprayd MFC r327289: 2018-01-10 21:24:03 +00:00
rshd MFC r320433: 2017-07-17 06:37:46 +00:00
rtld-aout More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rtld-elf MFC: r328834 2018-03-19 14:28:58 +00:00
save-entropy MFC r268979: 2014-07-29 06:00:16 +00:00
smrsh MFC r314653: 2017-07-20 00:52:11 +00:00
talkd MFC r314653: 2017-07-20 00:52:11 +00:00
tcpd MFC r314653: 2017-07-20 00:52:11 +00:00
telnetd MFC r314653: 2017-07-20 00:52:11 +00:00
tests MFC r289172,r290254: 2017-02-09 22:49:48 +00:00
tftp-proxy MFC r314653: 2017-07-20 00:52:11 +00:00
tftpd MFC r338216: 2018-10-01 16:11:09 +00:00
ulog-helper MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
ypxfr MFC r314653: 2017-07-20 00:52:11 +00:00
Makefile MFC r278192: 2015-03-01 22:03:52 +00:00
Makefile.inc