aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/xml-preprocess.py
diff options
context:
space:
mode:
authorVolker RĂ¼melin <vr_qemu@t-online.de>2024-08-02 09:18:05 +0200
committerMichael S. Tsirkin <mst@redhat.com>2024-08-20 06:57:47 -0400
commit7d14471a121878602cb4e748c4707f9ab9a9e3e2 (patch)
tree94dbd84744c202022771ce41f74c16eee223f29b /scripts/xml-preprocess.py
parentvhost: Add VIRTIO_NET_F_RSC_EXT to vhost feature bits (diff)
downloadqemu-7d14471a121878602cb4e748c4707f9ab9a9e3e2.tar.xz
qemu-7d14471a121878602cb4e748c4707f9ab9a9e3e2.zip
hw/audio/virtio-snd: fix invalid param check
Commit 9b6083465f ("virtio-snd: check for invalid param shift operands") tries to prevent invalid parameters specified by the guest. However, the code is not correct. Change the code so that the parameters format and rate, which are a bit numbers, are compared with the bit size of the data type. Fixes: 9b6083465f ("virtio-snd: check for invalid param shift operands") Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de> Message-Id: <20240802071805.7123-1-vr_qemu@t-online.de> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/xml-preprocess.py')
0 files changed, 0 insertions, 0 deletions