diff options
| author | Prasad J Pandit <pjp@fedoraproject.org> | 2016-05-31 23:23:27 +0530 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-16 18:39:05 +0200 |
| commit | d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a (patch) | |
| tree | 62a3a97c44dcc93650cf9a3b7f0dbd9bc0904e49 /include/hw/qdev-core.h | |
| parent | 943cec86d0864464ab29b42940c49d1ccbe8d268 (diff) | |
| download | focaccia-qemu-d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a.tar.gz focaccia-qemu-d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a.zip | |
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>
Diffstat (limited to 'include/hw/qdev-core.h')
0 files changed, 0 insertions, 0 deletions