9
0
Fork 0
barebox/fs
Sascha Hauer 975d6a0130 fs tftp: Fix possible fifo overflow
In tftp_read we send a request for a new packet without checking if we
have enough space in the FIFO. This can lead to a FIFO overflow and a
corrupt file. Add a check for it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2012-10-24 09:57:51 +02:00
..
cramfs use loff_t for file offsets 2012-06-30 16:53:24 +02:00
fat Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
Kconfig fs/mount: add autodetection type support 2012-09-04 09:08:39 +02:00
Makefile fs: Add NFS support 2012-05-14 08:36:03 +02:00
devfs-core.c devfs-core: add writesize in mtd partition ioctl 2012-10-23 08:25:31 +02:00
devfs.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
fs.c Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
nfs.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ramfs.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
tftp.c fs tftp: Fix possible fifo overflow 2012-10-24 09:57:51 +02:00