]> git.proxmox.com Git - mirror_qemu.git/commit
usb: check RNDIS message length
authorPrasad J Pandit <pjp@fedoraproject.org>
Tue, 16 Feb 2016 18:53:40 +0000 (00:23 +0530)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Feb 2016 09:38:00 +0000 (10:38 +0100)
commit64c9bc181fc78275596649f591302d72df2d3071
tree6b465377d9b401ac04baaf8768ea541ed51875c3
parent14ec7b2c5bc0e7b0f7097211d349b57450f09d02
usb: check RNDIS message length

When processing remote NDIS control message packets, the USB Net
device emulator uses a fixed length(4096) data buffer. The incoming
packet length could exceed this limit. Add a check to avoid it.

Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 1455648821-17340-2-git-send-email-ppandit@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/core.c