]> git.ipfire.org Git - thirdparty/qemu.git/commit
usb-audio: ignore usb packages with wrong size
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Dec 2018 07:26:49 +0000 (08:26 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Jan 2019 08:56:19 +0000 (09:56 +0100)
commita7fde1c1706a93c304eb301cc290d71c9426493b
tree96de622f1ad002db04038b4767996f3ba0690241
parent95a38c395de8941ee0f3de09006c423773e093b7
usb-audio: ignore usb packages with wrong size

usb packets with no payload (zero length) seem to happen in practice for
whatever reason.  Add a check and skip the packet then, otherwise we'll
trigger an assert.

Reported-by: Leonardo Soares Müller <leozinho29_eu@hotmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181211072649.20700-1-kraxel@redhat.com
hw/usb/dev-audio.c