Prasad J Pandit d3cdc49138 scsi: esp: check buffer length before reading scsi command
The 53C9X Fast SCSI Controller(FSC) comes with an internal 16-byte
FIFO buffer. It is used to handle command and data transfer.
Routine get_cmd() in non-DMA mode, uses 'ti_size' to read scsi
command into a buffer. Add check to validate command length against
buffer size to avoid any overrun.

Reported-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1464717207-7549-1-git-send-email-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-06-16 18:39:05 +02:00
..
2016-06-07 18:19:25 +03:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-05-19 16:42:27 +02:00
2016-05-29 09:11:10 +02:00
2016-06-16 18:39:03 +02:00
2016-06-14 16:01:03 +01:00
2016-06-14 15:59:13 +01:00
2016-06-14 15:59:15 +01:00
2016-06-16 18:39:03 +02:00
2016-05-19 16:42:29 +02:00
2016-05-18 15:04:27 +03:00
2016-06-07 18:02:48 +03:00
2016-06-07 18:19:23 +03:00
2016-05-29 09:11:10 +02:00
2016-06-07 15:39:28 +03:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:23 +03:00
2016-01-29 15:07:25 +00:00
2016-06-14 15:59:14 +01:00
2016-05-19 16:42:29 +02:00
2016-06-07 18:19:23 +03:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-05-23 13:30:03 +02:00
2015-12-22 18:39:19 +02:00