aboutsummaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2016-07-27 21:07:56 +0530
committerMichael S. Tsirkin <mst@redhat.com>2016-07-29 00:07:10 +0300
commit1e7aed70144b4673fc26e73062064b6724795e5f (patch)
treed6cf8775d16eeb42d4e292a33568b9715fedae63 /hw/usb
parent9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5 (diff)
downloadqemu-1e7aed70144b4673fc26e73062064b6724795e5f.zip
qemu-1e7aed70144b4673fc26e73062064b6724795e5f.tar.gz
qemu-1e7aed70144b4673fc26e73062064b6724795e5f.tar.bz2
virtio: check vring descriptor buffer length
virtio back end uses set of buffers to facilitate I/O operations. An infinite loop unfolds in virtqueue_pop() if a buffer was of zero size. Add check to avoid it. Reported-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/usb')
0 files changed, 0 insertions, 0 deletions